home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Periodicals / General / Mac Script / mac-script-94-03.txt < prev    next >
Text File  |  1994-06-09  |  447KB  |  10,482 lines

  1. Subject: March MacScripting digest
  2. Date: Mon, 04 Apr 94 15:46:26 -0500
  3. From: Fred Terry <pfterry@lks.csi.com>
  4.  
  5.  
  6. This is the March digest of the MacScripting mailing list.
  7.  
  8. =========================================================================
  9. Date:         Tue, 1 Mar 1994 09:47:07 -0500
  10. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12. From:         Chris Kier <chris@RETINA.ANATOMY.UPENN.EDU>
  13. Subject:      Frontier printing problems
  14.  
  15. Hello,
  16.  
  17. I'm running Frontier 3.01 on a Mac IIci with no special
  18. system extensions. Everytime I try to print from Frontier
  19. to my HP DeskWriter, Frontier unexpectedly quits. I am using
  20. the DeskWriter 4.0 appletalk driver, but have tried several
  21. older HP drivers with the same weird behavior. I am having
  22. no problems printing from any other applications.
  23.  
  24. Anybody else experiencing this problem? Any clues to fixing
  25. it?
  26.  
  27. Thanks
  28. Chris
  29. chris@retina.anatomy.upenn.edu
  30. =========================================================================
  31. Date:         Tue, 1 Mar 1994 15:00:35 GMT0BST
  32. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  33. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  34. From:         "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
  35. Subject:      AppleScript - RunTime/Developers Differences
  36.  
  37. Hi there!
  38.  
  39. Could someone spend the time to explain what differences there are
  40. between the runtime version of AS supplied with the Complete AS
  41. Handbook or the TAO of AS book - and the Developers Kit?
  42.  
  43. I am considering the purchase of all 3 - but the FAQ is not
  44. particularly helpful in explaining what the differences are except
  45. the price.
  46.  
  47. What can I not do with the RunTime version that I would need the full
  48. version for?
  49.  
  50. Thanks for your time.
  51.  
  52. Alistair.
  53. --
  54. ---------------------------------------------------------------------------
  55. | Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester     |
  56. | Computer Centre, Leicester University,      Non-UK:agl1@leicester.ac.uk |
  57. | University Road, Leicester LE1. 7RH., U.K.                              |
  58. |                                                                         |
  59. | UK       Tel: (0533) 522250     Fax: (0533) 525027                      |
  60. | Non-UK   Tel: +44 (533) 522250  Fax: +44 (533) 525027                   |
  61. ---------------------------------------------------------------------------
  62. =========================================================================
  63. Date:         Tue, 1 Mar 1994 11:24:06 -0500
  64. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  65. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  66. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  67. Subject:      Re> AppleScript - RunTime/Developers Differences
  68.  
  69. Alistair,
  70.  
  71. The versions supplied with the books are typically 1.0, so the developer's
  72. kit (1.1) is one version ahead (although the books may have caught up by
  73. now). The two most important things you get with the dk are FrontMost, which
  74. allows you to create graphical front-ends to scripts, and the runtime
  75. distribution license, which allows you to distribute the runtime parts with
  76. your script applications. There is, however, some vagueness about the
  77. distribution license.
  78.  
  79. FrontMost is worth the price, in my opinion. We've written several script
  80. front-ends in it and while it's not perfect, it does create nice interfaces
  81. (no more 4D client for small database tasks!).
  82.  
  83. Jay
  84. +---------------------------------------+----------------------------------+
  85. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  86. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  87. |   | ----------+ Development Training  |                  martin@aidt.edu |
  88. |   +---------------------------------- | (But what do they know?)         |
  89. +---------------------------------------+----------------------------------+
  90.  
  91.  ------ From: Macintosh Scripting Systems, Mar 1, 1994 ------
  92.  
  93. Hi there!
  94.  
  95. Could someone spend the time to explain what differences there are
  96. between the runtime version of AS supplied with the Complete AS
  97. Handbook or the TAO of AS book - and the Developers Kit?
  98.  
  99. I am considering the purchase of all 3 - but the FAQ is not
  100. particularly helpful in explaining what the differences are except
  101. the price.
  102.  
  103. What can I not do with the RunTime version that I would need the full
  104. version for?
  105.  
  106. Thanks for your time.
  107.  
  108. Alistair.
  109. =========================================================================
  110. Date:         Tue, 1 Mar 1994 11:42:38 -0600
  111. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  112. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  113. From:         Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
  114. Subject:      Developer question
  115.  
  116. This may be pushing the intent of this list, but I have a question for
  117. the app developers on the list. I currently have an application that
  118. generates registration numbers for our distribution disks. You stick in
  119. an unregistered disk, and it reports the registration number that it
  120. puts in the program. Easy enough.
  121.  
  122. Now I would like to have this same app send the registration numbers to
  123. FM Pro to put in a database. I've been a Mac programmer for a number of
  124. years now, and have IM 1-6, plus NIM: Text and NIM: IAC, Developer CD's,
  125. etc. Can anyone tell me where to get started on the app side of such a
  126. project? I suspect it will be pretty simple given the limited scope of
  127. the problem. Just stick the number in an AppleEvent and send it to FM
  128. Pro (once it's set up correctly anyway).
  129.  
  130. Can anyone offer same code, or a pointer to sources I should read?
  131.  
  132. +---------------------------------------------------------------+
  133. | Jim Van Peursem - Ph.D. Candidate - Ham Radio -> KE0PH        |
  134. | Department of Electrical Engineering and Computer Engineering |
  135. | Iowa State University - Ames, IA 50011 : (515) 294-8339       |
  136. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  137. +---------------------------------------------------------------+
  138. =========================================================================
  139. Date:         Tue, 1 Mar 1994 09:40:01 -0800
  140. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  141. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  142. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  143. Subject:      Re: Frontier printing problems
  144.  
  145. At  9:47 3/1/94 -0500, Chris Kier wrote:
  146. >I'm running Frontier 3.01 on a Mac IIci with no special
  147. >system extensions. Everytime I try to print from Frontier
  148. >to my HP DeskWriter, Frontier unexpectedly quits.
  149.  
  150. Thanks for the report.  This isn't something I can check out here (no
  151. DeskWriter available).
  152.  
  153. I have forwarded your entire message to Doug Baron of UserLand for his
  154. attention.
  155.  
  156. I will also watch the list for any replies.
  157.  
  158. --John
  159.  
  160. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  161.   UserLand Software support
  162. =========================================================================
  163. Date:         Tue, 1 Mar 1994 13:50:43 -0500
  164. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  165. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  166. Comments:     <Parser> W: Invalid RFC822 field - "From wizrdz!hag Tue Mar  1
  167.               12:56:25 1994". Rest of header flushed.
  168. Comments:     <Parser> E: "From:"/"Sender:" field is missing.
  169. From:         Undetermined origin c/o Postmaster <POSTMASTER@DARTCMS1.BITNET>
  170.  
  171. >I'm trying to figure out a way to use AppleScript to get the status
  172. >of the serial ports (in use, not in use). Can this be done? I saw a couple
  173.  
  174.         Well, I wrote a program a few years ago for Frontier, an AppleEvent
  175. serving program that allows access to the serial port (this was before
  176. OSAXen/UCMDs) which among other things would check the Open flag of a
  177. Driver to detect if the Serial port was already open, and included an event
  178. to ask if the serial port was in use. You can get via ftp to
  179. gaea.kgs.ukans.edu as /frontier/PhoneDial2.1.cpt or something like that.
  180. Source is included, so it shouldn't be hard to rip out the serial port open
  181. code for use in an OSAX. If someone does do this, please mention me
  182. somewhere in the credits. Thanks.
  183.  
  184.  
  185.    Hag
  186. ***********************************************************************
  187. * Daniel Hagerty (508)693-5614;Box 1234,Vineyard Haven, MA 02568-1234 *
  188. * Internet: <hag@eddie.mit.edu> RelayNet: ->5099 FidoNet: 1:331/201   *
  189. ***********************************************************************
  190. =========================================================================
  191. Date:         Tue, 1 Mar 1994 15:09:07 -0500
  192. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  193. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  194. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  195. Subject:      Re(5): Event handlers: how?
  196.  
  197. Mark Aiken writes:
  198. >    This is all very well. I've gotten a handler to work using the
  199. >notation
  200. >
  201. >on <<event ABDCabcd>> of directParam
  202. >    display dialog (directParam as string)
  203. >end <<event ABCDabcd>>
  204. >
  205. >    This works fine. However, I still haven't convinced AS to accept
  206. >paramaters other than the direct one.
  207.  
  208. Yes, I've noticed that too.
  209.  
  210. >In my app's 'aete', I define the names for the
  211. >paramaters of a certain event. Let's say the event
  212. >class is 'ABCD' and the event ID is 'abcd'. Let's also say that I have
  213. >a direct parameter and another paramater, keyword '1234', named
  214. >otherParam. All this is in my 'aete', opened from the Script Editor.
  215. >This *does not* work:
  216. >
  217. >on <<event ABCDabcd>> of directParam given otherParam:varName
  218. >    display dialog (varName as string)
  219. >end <<event ABCDabcd>>
  220. >
  221. >    I get the error: "Paramater otherParam is missing from <<event
  222. >ABCDabcd>>. But it isn't. I checked.
  223. >
  224. >    Is there another manual notation like the <<event ABCDabcd>>
  225. >notation that could use to indicate the keyword of my other paramater?
  226. >Something like
  227. >
  228. >on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
  229.  
  230.  
  231. >    Final question: all this still doesn't answer my question: why
  232. >isn't AS using my 'aete'? stuff like "on myEventName" *still*
  233. >doesn't work, although manually saying "on <<event ABCDabcd>>" *does*.
  234. >The paramater problems clearly indicates that AS is *not* referring
  235. >to my 'aete' for appropriate vocabulary. Why not?
  236.  
  237. The commands and objects available to AppleScript come from AS itself as
  238. well as the Scripting Additions that are installed.  The aete resource in
  239. your application only defines the events and objects that your
  240. *application* can handle.  In other words, in tell application
  241. "myApp"...end tell routines.  Using the "on <<event ABCDabcd>>...end
  242. <<event ABCDabcd>>" form of a handler in your script allows events to be
  243. passed to your *script* and the appropriate handler.  It is a lower-level
  244. way of sending and receiving AppleEvents (I think--someone correct me if
  245. I'm wrong).  You can actually send events to the Finder (7.0) from AS this
  246. way.
  247.  
  248. If you want AS to be able to handle the "on myEventName" type handlers, I
  249. suspect you will have to write it into a Scripting Addition.
  250.  
  251. Lee.
  252.  
  253. Lee K. Hoong
  254. Dept. of Chemistry, Emory University
  255. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  256. Disclaimer: I speak for myself only, not for Emory University
  257. =========================================================================
  258. Date:         Tue, 1 Mar 1994 15:22:10 -0600
  259. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  260. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  261. From:         Evan Kahn <elkahn@STUDENTS.WISC.EDU>
  262. Subject:      FrontMost
  263.  
  264. Could someone please send me some info about FrontMost?  Is there a demo of
  265. it, and is there a way to get it without buying the developer's kit?
  266.  
  267. Thanks in advance....
  268.  
  269.  
  270.  
  271. *****************************************************************************
  272.   _____   _       _    __
  273.  | ____| | |     | |  / /    Evan L Kahn
  274.  | |__   | |     | | / /     University of Wisconsin
  275.  |  __|  | |     | |< <      DoIT - Depratment of Information and Technology
  276.  | |___  | |___  | | \ \     elkahn@students.wisc.edu
  277.  |_____| |_____| |_|  \_\    ekahn@vms3.macc.wisc.edu
  278.  
  279.                     "Curiouser and curiouser............"
  280.  
  281. *****************************************************************************
  282. =========================================================================
  283. Date:         Tue, 1 Mar 1994 15:31:41 -0600
  284. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  285. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  286. From:         Fred Terry <pfterry@LKS.CSI.COM>
  287. Subject:      Re: Interfaces for scripts
  288. In-Reply-To:  Your message of "17 Feb 94 21:04:00 GMT."
  289.               <761520312.9866225@AppleLink.Apple.COM>
  290.  
  291. Uncle Dave perhaps you could help Evan out?
  292.  
  293. >Could someone please send me some info about FrontMost?  Is there a demo of
  294. >it, and is there a way to get it without buying the developer's kit?
  295. >
  296. >Thanks in advance....
  297.  
  298.  
  299. pf
  300. =========================================================================
  301. Date:         Tue, 1 Mar 1994 12:54:26 +0100
  302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  304. From:         Evan Kahn <elkahn@STUDENTS.WISC.EDU>
  305. Subject:      Script sources
  306.  
  307. Hi!
  308.       I am new to this server and to scripting in general.  Could someone
  309. please tell me where else I can find information and software (scripting
  310. additions, ftp, other servers, etc) for scipting on the mac?
  311.  
  312. Thanks in advance....
  313.  
  314.  
  315.  
  316.  
  317. *****************************************************************************
  318.   _____   _       _    __
  319.  | ____| | |     | |  / /    Evan L Kahn
  320.  | |__   | |     | | / /     University of Wisconsin
  321.  |  __|  | |     | |< <      DoIT - Depratment of Information and Technology
  322.  | |___  | |___  | | \ \     elkahn@students.wisc.edu
  323.  |_____| |_____| |_|  \_\    ekahn@vms3.macc.wisc.edu
  324.  
  325.                     "Curiouser and curiouser............"
  326.  
  327. *****************************************************************************
  328. =========================================================================
  329. Date:         Tue, 1 Mar 1994 17:06:17 -0500
  330. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  331. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  332. From:         Denis Simard <simardde@ERE.UMONTREAL.CA>
  333. Subject:      Re: Script sources
  334. In-Reply-To:  <199403012152.AA15244@condor.CC.UMontreal.CA> from "Evan Kahn" at
  335.               Mar 1, 94 12:54:26 pm
  336.  
  337. Evan Kahn wrote:
  338. >
  339. > Hi!
  340. >       I am new to this server and to scripting in general.  Could someone
  341. > please tell me where else I can find information and software (scripting
  342. > additions, ftp, other servers, etc) for scipting on the mac?
  343. >
  344.  
  345. Try this ftp site: gaea.kgs.ukans.edu.
  346.  
  347. Good Luck!
  348.  
  349. Denis
  350.  
  351. *****************************************************************************
  352.         DENIS SIMARD                    Universite de Montreal
  353.         (simardde@ere.umontreal.ca)     Etudes cinematographiques
  354. *****************************************************************************
  355. =========================================================================
  356. Date:         Tue, 1 Mar 1994 16:25:18 -0800
  357. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  358. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  359. From:         Tim Keanini <blast@CRL.COM>
  360. Subject:      handling the error?
  361.  
  362. Hello Frontier People,
  363.  
  364. TITLE:  Can I handle this error myself?
  365.         (in version 2.0 or 3.0)
  366.  
  367. I am checking my silly network for people who don't use passwords.
  368. I simply use the file.mountServerVolume verb and if it can mount with ""
  369. in the password field I call them up and invite then to my meeting on
  370. network security.:-0  It is a great meeting by the way.;-)
  371.  
  372. OK, here is the problem though,
  373. it will return true if and is mounted successfully;
  374. it will return a ERROR if the username or password is invalid. BUMMER!
  375. I wish it returned false if you got the password wrong.
  376.  
  377. I would like to do this if I could but I guess I cant.
  378. I have 3.0 but I have not installed it, I am installing it right now as
  379. I type this.
  380. Here is some psuedo code of what I am talking about.
  381.  
  382.         if (file.mountServerVolume (netPath, username, ""))
  383.                 // print the username to a file.
  384.                 // "" for the password is a no no.
  385.         else
  386.                 // print the name and say that it has been checked.
  387.  
  388. Any help on this would be great.
  389.  
  390. When I am done with this, when it become a script and not a hack I will
  391. up load it to the site so that all of you can check your nets for these
  392. people who dont use passwords.
  393.  
  394. Tim Keanini  <blast@crl.com>
  395.  
  396. beeper 415-ILL RAMS
  397. =========================================================================
  398. Date:         Wed, 2 Mar 1994 08:42:40 +0800
  399. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  400. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  401. From:         Peter N Lewis <peter.lewis@INFO.CURTIN.EDU.AU>
  402. Subject:      Re: Developer question
  403.  
  404. I'm don't have code, but it's basically a matter of building up AppleEvents
  405. and sending them.  Or you could write a script and the compile and execute
  406. it.
  407.  
  408. But a simpler solution might be to write the codes to a disk file, and then
  409. write a simple applescript script to process the codes file and send them
  410. to FileMaker.
  411.    Peter.
  412.  
  413. _______________________________________________________________________
  414. Peter N Lewis <peter.lewis@info.curtin.edu.au>       Ph: +61 9 368 2055
  415. =========================================================================
  416. Date:         Tue, 1 Mar 1994 20:52:05 -0500
  417. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  418. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  419. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  420. Subject:      Re: Developer question
  421.  
  422. Jim Van Peurse writes:
  423. >Now I would like to have this same app send the registration numbers to
  424. >FM Pro to put in a database. I've been a Mac programmer for a number of
  425. >years now, and have IM 1-6, plus NIM: Text and NIM: IAC, Developer CD's,
  426. >etc. Can anyone tell me where to get started on the app side of such a
  427. >project? I suspect it will be pretty simple given the limited scope of
  428. >the problem. Just stick the number in an AppleEvent and send it to FM
  429. >Pro (once it's set up correctly anyway).
  430. >
  431. >Can anyone offer same code, or a pointer to sources I should read?
  432.  
  433. Filemaker Pro 2.x comes with a Db that has some information on the
  434. AppleEvents and Objects that it supports.  The Db was recently upgraded
  435. with the release of FMP 2.1v2 and may be a good starting point for you...?
  436.  
  437. Lee.
  438.  
  439. Lee K. Hoong
  440. Dept. of Chemistry, Emory University
  441. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  442. Disclaimer: I speak for myself only, not for Emory University
  443. =========================================================================
  444. Date:         Wed, 2 Mar 1994 03:01:34 -0500
  445. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  446. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  447. From:         Chris Brannon <cbbst+@PITT.EDU>
  448. Subject:      Problem with SITcomm AS
  449.  
  450. Whenever I ty using a script that includes the Send File command in
  451. SITcomm, my machine crashes.  An example of the last script I tried is
  452. below.
  453.  
  454. I drop into macsbug, and this is what I see (I have no idea what this means)=
  455. :
  456.  
  457. Bus error @ 40818B4A _GetWRefCon+0008
  458. While reading long word from 802704D8 in user data space.
  459.  
  460. Any ideas?  Could it be an extension conflict (I run a whole mess of them).
  461.  
  462. The script:
  463.  
  464. tell application "SITcomm=81"
  465.         activate
  466.         Send Text "rz -y" & return
  467.         Send Files {alias "Earth:Save =9F:Graduate Work:2030:2030 Paper #1:p=
  468. .c"}
  469. end tell
  470.  
  471.  
  472. Regards,...Chris
  473. ---------------------------------------------------------------------------
  474. Christopher B. Brannon                             University of Pittsburgh
  475. cbbst+@pitt.edu                                           Political Science
  476. =========================================================================
  477. Date:         Wed, 2 Mar 1994 02:03:22 -0800
  478. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  479. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  480. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  481. Subject:      Re: handling the error?
  482.  
  483. At 16:25 3/1/94 -0800, Tim Keanini wrote:
  484.  
  485. >TITLE:  Can I handle this error myself?
  486. >        (in version 2.0 or 3.0)
  487.  
  488. >I am checking my silly network for people who don't use passwords.
  489. >I simply use the file.mountServerVolume verb and if it can mount with ""
  490. >in the password field I call them up and invite then to my meeting on
  491. >network security.:-0  It is a great meeting by the way.;-)
  492. >
  493. >OK, here is the problem though,
  494. >it will return true if and is mounted successfully;
  495. >it will return a ERROR if the username or password is invalid. BUMMER!
  496. >I wish it returned false if you got the password wrong.
  497.  
  498. Starting with Frontier 2.0 you can use the try...else... construct with any
  499. verb which might produce an error, in order to do something about the
  500. error.  See the DocServer page for "Try" for information.
  501.  
  502. try
  503.    if (file.mountServerVolume (netPath, username, ""))
  504.        // print the username to a file.
  505.        // "" for the password is a no no
  506. else
  507.    // this is a "good" user.  You don't need the else if there's nothing
  508.    // to be done here
  509.  
  510. beeper 415-ILL RAMS
  511.  
  512. beep!
  513.  
  514. --
  515. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  516.    "This is the network of our disconnect"
  517. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  518. =========================================================================
  519. Date:         Wed, 2 Mar 1994 12:16:46 GMT0BST
  520. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  521. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  522. From:         "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
  523. Subject:      ISBN of Complete AppleScript Handbook
  524.  
  525. Can someone email it to me please.
  526.  
  527. Thanks.
  528.  
  529. Alistair.
  530. --
  531. ---------------------------------------------------------------------------
  532. | Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester     |
  533. | Computer Centre, Leicester University,      Non-UK:agl1@leicester.ac.uk |
  534. | University Road, Leicester LE1. 7RH., U.K.                              |
  535. |                                                                         |
  536. | UK       Tel: (0533) 522250     Fax: (0533) 525027                      |
  537. | Non-UK   Tel: +44 (533) 522250  Fax: +44 (533) 525027                   |
  538. ---------------------------------------------------------------------------
  539. =========================================================================
  540. Date:         Wed, 2 Mar 1994 08:45:28 -0600
  541. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  542. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  543. From:         Fred Terry <pfterry@LKS.CSI.COM>
  544. Subject:      MacPPP osaxen
  545.  
  546. Hi folks,
  547.  
  548. I've just placed a new osax from Mark Alldritt in
  549. gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
  550. well, let's just let Mark tell us about it....
  551.  
  552. MacPPP Control is an AppleScript Addition which allows your
  553. scripts limited control over MacPPP.  The addition allows
  554. you to open and close the PPP link, and to check the state
  555. (open/closed) of the link.
  556.  
  557.  
  558. Enjoy.
  559.  
  560. pf
  561.  
  562.  
  563.  
  564. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  565. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  566.  
  567. "Bad spellers of the world, untie!"
  568.                                         --Graffito
  569. =========================================================================
  570. Date:         Wed, 2 Mar 1994 08:55:01 -0500
  571. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  572. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  573. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  574. Subject:      Re> FrontMost
  575.  
  576. If you have AS 1.1, I'd be glad to send you a FrontMost application so you
  577. can see some of the things it can do. The last time I asked on AppleLink, the
  578. only way to get it was through the scripter's and developer's kit.
  579. MacWarehouse has the scripter's kit for $149 (or somewhere close). At the
  580. bottom of this message, you'll find the "About SDU's Interface Builder" from
  581. AppleLink.
  582.  
  583. Jay
  584. +---------------------------------------+----------------------------------+
  585. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  586. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  587. |   | ----------+ Development Training  |                  martin@aidt.edu |
  588. |   +---------------------------------- | (But what do they know?)         |
  589. +---------------------------------------+----------------------------------+
  590.  
  591.  ------ From: Macintosh Scripting Systems, Mar 1, 1994 ------
  592.  
  593. Could someone please send me some info about FrontMost?  Is there a demo of
  594. it, and is there a way to get it without buying the developer's kit?
  595.  
  596. Thanks in advance....
  597.  
  598. ----------------------------------------------------------------------------
  599. Overview
  600.  
  601. Frontmost is the interface processor for AppleScript(tm) It lets you create
  602. complete Macintosh(r) applications from scripts. Using Frontmost and
  603. AppleScript,
  604. you can integrate desired functions from any scriptable program into one
  605. double-clickable application, with an interface customized to your needs.
  606.  
  607. Frontmost's interactive, object-oriented tools let you design applications
  608. that
  609. are as simple or as sophisticated as you need. You can make a simple dialog,
  610. or
  611. build a multiple-window application with custom menus. You begin an
  612. application
  613. by laying out the windows and menus that you will need. You can then import
  614. pictures, icons, or movies. Finally, you write only the scripts necessary to
  615. make the interface and the other scriptable programs work together. The
  616. integrated WYSIWYG editing and execution environment gives you instant
  617. feedback. It fully supports the incremental design, development, and testing
  618. of
  619. even the most complex applications. There's no need to leave Frontmost to try
  620. out your designs.
  621.  
  622. In addition to its power and control over details, Frontmost makes getting
  623. started easy:  Every interface element automatically behaves as you'd expect,
  624. even without scripting. And when you do need to write scripts, convenient
  625. menus
  626. enter AppleScript statements for you. The "Revert" and "Undo" commands let
  627. you
  628. back out of mistakes and experiments. Test-fly your scripts as you think of
  629. them in the handy command window.
  630.  
  631. Frontmost's combination of simplicity and flexibility allows you to quickly
  632. deliver professional applications with all the eloquence, subtlety, and power
  633. of the the Macintosh user interface.
  634.  
  635. -----------------------------------------------------------------------------
  636.  
  637. Features (>>) and Benefits (++):
  638.  
  639. >> Standard windows, menus and all other Macintosh interface elements are
  640.    supported, all with their standard default behaviors.
  641. ++ Create applications having standard appearances and behaviors with minimum
  642.    effort.
  643.  
  644. >> Projects compile into stand-alone, double-clickable applications.
  645. ++ Distribute commercial quality applications that look and feel professional
  646.    to your clients.
  647.  
  648. >> Supports all AppleScript commands and access to all scriptable
  649. applications.
  650. ++ Integrate the best parts of other programs into a single custom
  651. application,
  652.    with an integrated interface.
  653.  
  654. >> AppleScript is an open, standard environment which allows you to access
  655. just
  656.    the parts of a scriptable application that you need.
  657. ++ Grow your program's capabilities with every new scriptable application.
  658.  
  659. >> Frontmost is fourth generation software, based on interface tools that
  660. have
  661.    been shipping since 1989.
  662. ++ Rely on a proven, known technology that has been upgraded to provide
  663. leading
  664.    edge capabilities.
  665.  
  666. >> Fully integrated support for color.
  667. ++ Use the full expressive power of color.
  668.  
  669. >> Integrated design and runtime environment.
  670. ++ Develop and try out applications incrementally, for speed and accuracy.
  671.  
  672. >> Graphical design tools to draw interface elements.
  673. ++ Work in an intuitive, WYSIWYG editing environment.
  674.  
  675. >> Pictures and icons can be imported from any file or application.
  676. ++ Use existing graphics, or use graphics created with any application.
  677.  
  678. >> Supports scriptable "hot-text" (words in text used as buttons).
  679. ++ Create "hypertext" linkages between data and interface elements.
  680.  
  681. >> Accepts "plug-in" menu, list and control definition resources.
  682. ++ Extend the number and variety of interface elements (using C, Pascal or
  683.    assembly code).
  684.  
  685. >> Design-time and run-time access to all properties, contents and behaviors
  686. of
  687.    all interface elements.
  688. ++ Customize the appearance and behavior of any element of an application.
  689.  
  690. -----------------------------------------------------------------------------
  691.  
  692. Techinical Specifications
  693.  
  694. System Requirements
  695. o A 68020 or later processor, 4MB of RAM, a hard disk, System Software 7.0.1
  696. or
  697.   later and AppleScript 1.1 or later.
  698.  
  699. Capacities
  700. o Up to 9 projects open at once; any number of windows per project; any
  701. number
  702.   of window items per window; any number of menus and menu items; up to
  703. 32,767
  704.   characters per script for each project, window and window item.
  705.  
  706. Interface
  707. o Graphical tools to draw all interface elements.
  708. o Copy and paste all design elements, scripts.
  709. o Import pictures and icons from any file.
  710. o Pixel and grid positioning and sizing.
  711. o Undo, redo and revert projects.
  712. o Easily set properties of all design elements.
  713. o Message window for commands.
  714. o Instant "play" of all interface elements.
  715. o Incremental application design, testing.
  716. o Popup references for messages, properties.
  717. o Find window items by name, index or ID.
  718. o In scripts: find, find next, find in next script.
  719. o Supports extended keyboard functions.
  720. o Create your own design and editing tools.
  721. o Icons: finder and color.
  722. o Pictures: standard formats; fixed or scrolling.
  723.  
  724. Design Elements
  725. o All interface elements have standard default behaviors and appearances.
  726. o RGB colors for all interface elements.
  727. o Window styles: standard document; modal dialog; floating windoid (palette).
  728. o Buttons: push, radio; checkboxes; icon, animated and picture buttons; radio
  729.   button groups.
  730. o Lists: plain and styled text; icons; pictures; multi-column; draggable;
  731.   multi-selection.
  732. o Text: editable or not; wrapped or not; font, style, color control; key
  733.   filters; scrolling.
  734. o Popups: text, icon, picture, color palettes.
  735. o Gauges: scrollbar, progress bars, counter.
  736. o Movies: QuickTime format.
  737. o Scrolling panes: can contain any other items.
  738. o Drawn graphics: lines and rectangles.
  739. o Menus: standard and application-specific.
  740.  
  741. Scripting
  742. o Script every project, window, window item.
  743. o Any number of scripts open at one time.
  744. o Supports all of AppleScript.
  745. o Instant "play" of scripts and commands.
  746. o Control all properties of all interface items.
  747. o Fully object-oriented.
  748. o Keystroke and click interception.
  749. o Scriptable interception and control of all window behaviors-open, close,
  750.   zoom, etc.
  751. o Interception and control of all window item behaviors-clicking, scrolling
  752. and
  753.   so forth.
  754. o Fully scriptable menus and menu items.
  755. o Creates stand-alone scriptable applications.
  756.  
  757. Developer
  758. Software Designs Unlimited Inc.  919/968-4567
  759. 1829 East Franklin Street, Suite 1020
  760. Chapel Hill, NC  27514-5861
  761. 919/968-4576 fax     AppleLink "SDU"
  762.  
  763. Availability: Now
  764. Sold as part of the AppleScript Scripter's Kit.
  765. =========================================================================
  766. Date:         Wed, 2 Mar 1994 09:12:38 -0600
  767. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  768. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  769. From:         Fred Terry <pfterry@LKS.CSI.COM>
  770. Subject:      Scripting SITcomm
  771.  
  772. I've just placed a stack on gaea that provides some help for scripting
  773. SITcomm. You'll find it in /applescript/docs/sitcommstack.cpt.hqx.
  774.  
  775. pf
  776.  
  777.  
  778. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  779. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  780.  
  781. "Bad spellers of the world, untie!"
  782.                                         --Graffito
  783. =========================================================================
  784. Date:         Wed, 2 Mar 1994 09:22:13 CST
  785. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  786. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  787. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  788. Subject:      Re: MacPPP osaxen
  789.  
  790. >I've just placed a new osax from Mark Alldritt in
  791. >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
  792. >well, let's just let Mark tell us about it....
  793. >
  794. >MacPPP Control is an AppleScript Addition which allows your
  795. >scripts limited control over MacPPP.  The addition allows
  796. >you to open and close the PPP link, and to check the state
  797. >(open/closed) of the link.
  798. >
  799.  
  800. Is there one for us MacSLIP users on the way??  I use Eudora over a SLIP
  801. connection and would love to be able to script the whole transaction.
  802.  
  803. Tom
  804.  
  805. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  806. Tom Donovan           "Perhaps the most universal information trap is the...
  807. System Administrator   trap of forgetting what it's like not to know. The
  808. CoVis Project          minute we know something, we forget what it was like
  809. Northwestern Univ.     not to know it."
  810.                                                     --Richard S. Wurman
  811. E-mail: donovan@covis.nwu.edu                    "Information Anxiety"
  812. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  813. =========================================================================
  814. Date:         Wed, 2 Mar 1994 08:28:48 -0800
  815. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  816. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  817. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  818. Subject:      Re: ISBN of Complete AppleScript Handbook
  819.  
  820. >Can someone email it to me please.
  821. >
  822. ISBN 0-679-79148-5
  823. Random House Publishing
  824. Danny Goodman
  825. The Complete AppleScript Handbook
  826.  
  827. _________________________________________________________________
  828. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  829. A newly poured 14.4 Kbps information superhighway onramp.
  830. =========================================================================
  831. Date:         Wed, 2 Mar 1994 10:37:20 CST
  832. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  833. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  834. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  835. Subject:      Help!  Damaged applet!
  836.  
  837. When I try to open (in the Script Editor) an applet I wrote, I get the
  838. message: "Could not read the file because the data is damaged and
  839. unreadable."
  840.  
  841. Is there any way to recover it?
  842.  
  843.  
  844. Desperately,
  845.  
  846.         Tom
  847.  
  848. NB: With AppleScript, I'm *creating* applications for the first time, and I
  849. hadn't considered the fact that my back-up software was set to back up
  850. documents only  :'-(
  851.  
  852.  
  853. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  854. Tom Donovan           "Perhaps the most universal information trap is the...
  855. System Administrator   trap of forgetting what it's like not to know. The
  856. CoVis Project          minute we know something, we forget what it was like
  857. Northwestern Univ.     not to know it."
  858.                                                     --Richard S. Wurman
  859. E-mail: donovan@covis.nwu.edu                    "Information Anxiety"
  860. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  861. =========================================================================
  862. Date:         Wed, 2 Mar 1994 09:17:56 -0800
  863. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  864. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  865. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  866. Subject:      Re: Help!  Damaged applet!
  867.  
  868. At 10:37 3/2/94 -0600, Tom Donovan wrote:
  869.  
  870. >When I try to open (in the Script Editor) an applet I wrote, I get the
  871. >message: "Could not read the file because the data is damaged and
  872. >unreadable."
  873. >
  874. >Is there any way to recover it?
  875.  
  876. Well, the only critical part of the file is the 'scpt' resource.  With a
  877. suitably recent and/or suitably set up ResEdit (don't ask...I don't know
  878. how recent, and I don't remember whether I added something), ResEdit can
  879. decompile 'scpt' resources and display the resulting text.  Copy same, and
  880. start over.
  881.  
  882. [Before trying that, make a copy of your bad applet, in case ResEdit tries
  883. to "fix" the resource fork, and botches the job.]
  884.  
  885. >NB: With AppleScript, I'm *creating* applications for the first time, and I
  886. >hadn't considered the fact that my back-up software was set to back up
  887. >documents only  :'-(
  888.  
  889. That's an excellent point.  One which, if you don't mind, I'll share over
  890. in some of the various scripting areas on CompuServe.  It's a little less
  891. critical for Frontier users, since typically a Frontier DeskTop script has
  892. a copy retained in the database, but it's still an issue for us, too.
  893.  
  894. --John
  895.  
  896. --
  897. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  898.    "This is the network of our disconnect"
  899. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  900. =========================================================================
  901. Date:         Wed, 2 Mar 1994 09:43:33 -0800
  902. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  903. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  904. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  905. Subject:      Re: MacPPP osaxen
  906.  
  907. At  8:45 3/2/94 -0600, Fred Terry wrote:
  908.  
  909. >I've just placed a new osax from Mark Alldritt in
  910. >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
  911. >well, let's just let Mark tell us about it....
  912.  
  913. Unfortunately, this file appears to be damaged.  No method I have used to
  914. obtain it produces a usable binhex file, and if the warnings about a bad
  915. file are ignored, the resulting StuffIt archive fails verification by
  916. StuffIt.
  917.  
  918. I've used Anarchie, Fetch, and a plain FTP to my Internet host followed by
  919. grabbing the file from there via Fetch and also via capturing a cat command
  920. into a text file.  [My Internet host doesn't seem to have mcvert.]
  921.  
  922. --John
  923.  
  924. --
  925. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  926.    "This is the network of our disconnect"
  927. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  928. =========================================================================
  929. Date:         Wed, 2 Mar 1994 12:02:03 -0800
  930. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  931. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  932. From:         David Lewis <lewis@NETCOM.COM>
  933. Subject:      Re: MacPPP osaxen
  934.  
  935. >Hi folks,
  936. >
  937. >I've just placed a new osax from Mark Alldritt in
  938. >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
  939. >well, let's just let Mark tell us about it....
  940. >
  941. >MacPPP Control is an AppleScript Addition which allows your
  942. >scripts limited control over MacPPP.  The addition allows
  943. >you to open and close the PPP link, and to check the state
  944. >(open/closed) of the link.
  945. >
  946. Unfortunately (because I *need* this capability) the .hqx file seems to be
  947. corrupt. I've downloaded it twice, and it looks normal in an editor, but
  948. Stuffit Deluxe's BinHex decoder thinks that neither fork could be verified,
  949. and when I open the archive, Stuffit Deluxe says it's corrupted.
  950.  
  951. By the way, I'm assuming that controlling it with Frontier should be simple
  952. too. If it won't be obvious once I get a clean copy, could you tell me how?
  953. Thanks.
  954.  
  955.         David
  956.  
  957. ------------------------------------------------------------------------
  958. David Lewis               lewis@netcom.com                (408) 439-2374
  959. =========================================================================
  960. Date:         Wed, 2 Mar 1994 12:28:15 -0800
  961. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  962. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  963. From:         David Ray <daver@NETCOM.COM>
  964. Subject:      Re: MacPPP osaxen
  965.  
  966. >MacPPP Control is an AppleScript Addition which allows your
  967. >scripts limited control over MacPPP.  The addition allows
  968. >you to open and close the PPP link, and to check the state
  969. >(open/closed) of the link.
  970.  
  971. Any chance of an OSAX that can be used with InterSLIP?
  972.  
  973. Actually, a more universal solution  would be to have an OSAX that can
  974. check the status of the serial port (in use, not in use) and return
  975. true or false.
  976.  
  977. InterSLIP (and I presume MacSLIP and MacPPP) can be launched and connections
  978. made using a combination of Finder Liaison calls and the AutoType OSAX.
  979.  
  980. Tell app "Finder Liaison 1.1"
  981. open (a reference to file (Mac:Comm:InterSLIP 1.0"))
  982. end tell
  983. auto type "m" holding "command"
  984.  
  985. problem is, if the phone line is busy, it exits dialing and InterSLIP
  986. doesn't have an auto dial feature. Applescript could be used to autodial if
  987. an osax existed to detect the serial port status.
  988. Call it "serial":
  989.  
  990. Global i
  991. set i to 1
  992. On open
  993. if 1 = 1 then
  994. Tell app "Finder Liaison 1.1"
  995. open (a reference to file (Mac:Comm:InterSLIP 1.0"))
  996. end tell
  997. auto type "m" holding "command"
  998. set i to i + 1
  999. else if i = 2
  1000. if serial is false then
  1001. auto type "m" holding "command"
  1002. else
  1003. quit
  1004. end if
  1005. end if
  1006. return 10
  1007. end open
  1008.  
  1009. Comments?
  1010.  
  1011. Dave Ray
  1012. daver@netcom.com
  1013. =========================================================================
  1014. Date:         Wed, 2 Mar 1994 15:50:49 -0500
  1015. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1016. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1017. From:         lic@NEXTWORK.ROSE-HULMAN.EDU
  1018. Subject:      help ?
  1019.  
  1020. I am the new user of AppleScript.
  1021. 1)      When I used "set" or "copy" command with patterns, I got an error
  1022. message which was "Access not allowed".
  1023. 2)      I also can not get the "position" properity of  "Scriptable Text
  1024. Editor".
  1025. There are also several futures I can not obtain from my "Script Editor" which
  1026. comes with the system 7, such as "date", "weekday" ... properities of the
  1027. "date".
  1028.  
  1029. Can anyone give me some clues about it.
  1030.  
  1031. -- Chong
  1032. -- lic@nextwork.rose-hulman.edu
  1033. =========================================================================
  1034. Date:         Wed, 2 Mar 1994 14:37:27 -0800
  1035. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1036. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1037. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1038. Subject:      Re: MacPPP osaxen
  1039.  
  1040. At 12:28 PM 3/2/94 -0800, David Ray wrote:
  1041. >>MacPPP Control is an AppleScript Addition which allows your
  1042. >>scripts limited control over MacPPP.  The addition allows
  1043. >>you to open and close the PPP link, and to check the state
  1044. >>(open/closed) of the link.
  1045. >
  1046. >Any chance of an OSAX that can be used with InterSLIP?
  1047. >
  1048.         A scriptable application that can control InterSLIP has been
  1049. available (along with full source) at netcom.com:pub/leonardr/Hacks.
  1050.  
  1051. Leonard
  1052.  
  1053. -----------------------------------------------------------------------------
  1054. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1055. Director of Advanced Technology         AppleLink:      MACgician
  1056. Aladdin Systems, Inc.                   GEnie:          MACgician
  1057. =========================================================================
  1058. Date:         Thu, 3 Mar 1994 23:31:20 -0800
  1059. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1060. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1061. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1062. Subject:      Re: Problem with SITcomm AS
  1063.  
  1064. >Whenever I ty using a script that includes the Send File command in
  1065. >SITcomm, my machine crashes.  An example of the last script I tried is
  1066. >below.
  1067. >
  1068.         We have found this problem (it doesn't happen all the time), and it
  1069. is fixed for our forthcoming 1.0.1 update.  Sorry about that!
  1070.  
  1071. Leonard
  1072.  
  1073. -----------------------------------------------------------------------------
  1074. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1075. Director of Advanced Technology         AppleLink:      MACgician
  1076. Aladdin Systems, Inc.                   GEnie:          MACgician
  1077. =========================================================================
  1078. Date:         Thu, 3 Mar 1994 08:16:30 -0600
  1079. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1080. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1081. From:         "E.J. Draper" <draper@UTMDACC.MDA.UTH.TMC.EDU>
  1082. Subject:      Re: MACSCRPT Digest - 1 Mar 1994 to 2 Mar 1994
  1083.  
  1084. >Any chance of an OSAX that can be used with InterSLIP?
  1085.  
  1086. I don't know of an OSAX, but Leonard Rosenthol's InterSLIP/AE application
  1087. will allow you to drive InterSLIP from scripts. InterSLIP/AE should ber
  1088. available from most of the larger ftp sites...
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.       |E|J-  ED DRAPER
  1098.  rEpar|D|<-  Radiologic/Pathologic Institute
  1099.              The University of Texas M.D. Anderson Cancer Center
  1100.              draper@utmdacc.mda.uth.tmc.edu
  1101. =========================================================================
  1102. Date:         Thu, 3 Mar 1994 09:06:55 -0600
  1103. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1104. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1105. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1106. Subject:      MacPPP control & stuff
  1107.  
  1108. As most of you have gathered, MacPPP was corrupted somehow. Mark sent me a new
  1109. copy last night which I downloaded to my Mac and tested. It is now on
  1110. gaea.kgs.ukans.edu in /applescript/osaxen/MacPPPControl.sit.hqx.
  1111.  
  1112. I have also put a copy of Leonard's InterSLIP_AE in
  1113. /applescript/scriptableapps/InterSLIP_AE1.0b1.sit.hqx (is it an app?).
  1114.  
  1115. As a side note, whenever I make changes or add files to the directories, I
  1116. update the /applescript/00index file. Those of you forced to get files via
  1117. email can always find the correct path in it.
  1118.  
  1119. Sorry for all of the bother.
  1120.  
  1121. pf
  1122.  
  1123.  
  1124. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1125. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  1126.  
  1127. Eventually people realized that the Information Superhighway was
  1128. essentially CB radio, but with more typing.
  1129.  -Dave Barry, "The '90s, Looking Back at the Interactive Salad Bar"
  1130. =========================================================================
  1131. Date:         Thu, 3 Mar 1994 09:38:12 U
  1132. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1133. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1134. From:         Gina Carranza <gina_carranza1@QMGATE.FNAL.GOV>
  1135. Subject:      Installer Makers
  1136.  
  1137.                                            From the Desk of...
  1138.                                                                       3/3/94
  1139.                                            Georgina E. Carranza       9:32 AM
  1140.                                            Installer Makers
  1141. Does anyone know of a product that creates Macintosh installers?  I am in the
  1142. process of evaluating software from Aladdin called InstallerMaker, but I would
  1143. like to evaluate other products that are also InstallerMakers and compare them.
  1144.  I have not been successful in finding other products, can someone help me with
  1145. this matter.
  1146. Thank you,
  1147. Gina.
  1148. =========================================================================
  1149. Date:         Thu, 3 Mar 1994 09:18:34 -0700
  1150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1152. From:         Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
  1153. Subject:      Re: Re(5): Event handlers: how?
  1154.  
  1155. > Lee K. Hoong writes
  1156. >
  1157. > If you want AS to be able to handle the "on myEventName" type handlers, I
  1158. > suspect you will have to write it into a Scripting Addition.
  1159. >
  1160.  
  1161. If you calling a script as *part* of your application, eg through a
  1162. an OSAExecuteEvent call, and you have defined an extra event class in
  1163. the aete of your application (or respond to the get aete event with one)
  1164. then you can use your defined terminology as the name of a handler
  1165. for your event class. I have a number of such events defined for actions
  1166. generated within my own windows and sent to scripts attached to those windows.
  1167.  
  1168. b.
  1169.  
  1170.  
  1171. Brian Gaines              Knowledge Science Institute, University of Calgary
  1172. gaines@cpsc.ucalgary.ca   Calgary, Alberta, Canada T2N 1N4
  1173. =========================================================================
  1174. Date:         Thu, 3 Mar 1994 12:00:42 -0600
  1175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1177. From:         Michael Kilgore <mak@TICIPA.WORKS.TI.COM>
  1178. Organization: Texas Instruments, Inc.
  1179. Subject:      Re: Re(5): Event handlers: how?
  1180.  
  1181. Mark Aiken writes:
  1182. >    Is there another manual notation like the <<event ABCDabcd>>
  1183. >notation that could use to indicate the keyword of my other paramater?
  1184. >Something like
  1185. >
  1186. >on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
  1187.  
  1188. Perhaps something like
  1189.    on <<event FoooGtVC>> given <<property astr>>:asString, <<property ...>>:...
  1190.       if asString then ...
  1191.    end <<event FoooGtVC>>
  1192. in your script and
  1193.     tell app "yourApp" to <event FoooGtVC> given <property astr>:true, ...
  1194. in another app or script?  This is so forgiving that you don't need 'GtVC'
  1195. or 'astr' defined in the 'aete' resource (or an 'aete' resource at all, for
  1196. that matter); and 'yourApp' doesn't even need 'Fooo' as its signature.
  1197.  
  1198. I have noticed that Script Editor also rewrites
  1199.    on <<event FoooGtVC>> (x, y)
  1200. as
  1201.    on <<event FoooGtVC>> {x,y}
  1202. So a desperate measure might be to pass a list as a pattern parameter; but
  1203. that seems even uglier than the preceding.
  1204.  
  1205. (On the other hand, I note that the AS Language Guide claims that there is
  1206. no way to do optional parameters; so it evidently can't support the full
  1207. generality of AE in this regard.)
  1208.  
  1209. --
  1210. Michael Kilgore     Texas Instruments, Inc.
  1211. (214) 917-2219      mak@works.ti.com
  1212. =========================================================================
  1213. Date:         Thu, 3 Mar 1994 12:31:52 -0600
  1214. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1215. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1216. From:         Sean Elfstrom <selfstro@NEPTUNE.CS.TRINITY.EDU>
  1217. Subject:      Help
  1218.  
  1219. I am having problems with the following script:
  1220.  
  1221. on run
  1222.         try
  1223.                 set myFiles to finder selection
  1224.         on error
  1225.                 return
  1226.         end try
  1227.         set result to myFiles
  1228.         open myFiles as list
  1229. end run
  1230.  
  1231. on open fileList
  1232.         repeat with fileName in fileList
  1233.                 convert(fileName)
  1234.         end repeat
  1235. end open
  1236.  
  1237. on convert(theFile)
  1238.         tell application "JPEGView"
  1239.                 open {theFile as alias}
  1240.         end tell
  1241.  
  1242. This is with AppleScript 1.0, and Jon's Commands 1.0 for the finder
  1243. selection. When I run this, it gives me the following error:
  1244.  
  1245. Can't get file "<file name>".
  1246.  
  1247. Any ideas on what I'm doing wrong?
  1248.  
  1249. Also, I get errors of type -1728 sometimes. What does this mean?
  1250.  
  1251. Thanks.
  1252.  
  1253. --
  1254. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  1255. | Sean Elfstrom                              | Trinity University         |
  1256. | selfstro@tusol.cs.trinity.edu              | 715 Stadium Dr. #707       |
  1257. | NeXTMail: selfstro@oberon.cs.trinity.edu   | San Antonio, TX 78212-7200 |
  1258. | **PGP 2.3 Signature available via finger** | (210)737-4728   McLean 124 |
  1259. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  1260. =========================================================================
  1261. Date:         Thu, 3 Mar 1994 12:49:58 CST
  1262. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1263. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1264. From:         Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
  1265. Subject:      InterSLIP/AE source...can't get download it
  1266.  
  1267. > I don't know of an OSAX, but Leonard Rosenthol's InterSLIP/AE application
  1268. > will allow you to drive InterSLIP from scripts. InterSLIP/AE should ber
  1269. > available from most of the larger ftp sites...
  1270.  
  1271. For some reason, I can't seem to successfully download the SOURCE CODE for
  1272. the InterSLIP/AE app on netcom.com.
  1273.  
  1274. Could someone please email me a GOOD binhex copy of this file?  Thanks!
  1275.  
  1276. Taylor
  1277.  
  1278.  
  1279.     +-----------------------------------------------------------------+
  1280.     |   Taylor Leaming                   leamingt@tobor.sps.mot.com   |
  1281.     |   Motorola, Inc.                                                |
  1282.     |   Austin, Texas                                (512) 891-6211   |
  1283.     +-----------------------------------------------------------------+
  1284. =========================================================================
  1285. Date:         Thu, 3 Mar 1994 12:05:13 -0800
  1286. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1287. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1288. From:         Stephanie Sandberg <sls@FRAME.COM>
  1289. Subject:      Re: Installer Makers
  1290.  
  1291. 1.) Formerly Salient and Fifth Generation Systems, now Symantec has an
  1292. installer
  1293. package that you can customize, that uses the DiskDoubler compression tools. I
  1294. currently use this for the products we release, which contain over 200 files.
  1295.  
  1296. 2.) Apple has their own installer package. And there are several companies that
  1297. sell tools to use in constructing scripts for the apple installer that are
  1298. supposed to simplify the process.
  1299. I've heard their newest release of the installer is really hot, but haven't
  1300. had much time to look into it myself.
  1301.  
  1302. Steph
  1303.  
  1304. >                                           From the Desk of...
  1305. >                                                                      3/3/94
  1306. >                                           Georgina E. Carranza       9:32 AM
  1307. >                                           Installer Makers
  1308. >Does anyone know of a product that creates Macintosh installers?  I am in the
  1309. >process of evaluating software from Aladdin called InstallerMaker, but I would
  1310. >like to evaluate other products that are also InstallerMakers and compare them.
  1311. > I have not been successful in finding other products, can someone help me with
  1312. >this matter.
  1313. >Thank you,
  1314. >Gina.
  1315. =========================================================================
  1316. Date:         Thu, 3 Mar 1994 15:45:01 -0600
  1317. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1318. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1319. From:         Gordon Watts -- U of Rochester <GWATTS@WHCDF.FNAL.GOV>
  1320. Subject:      Re: InterSLIP/AE source...can't get download it
  1321.  
  1322. Hi,
  1323.   Yes.  I had that problem with Fetch too.  If you turn off binhex decoding and
  1324. download, and then use stuffit (figures, eh? :)) to unbinhex it you can get in
  1325. it.  I guess something is a little marginal with the binhex.  I didn't
  1326. investigate further, so it could be something else.
  1327.  
  1328.         Cheers,
  1329.                 Gordon.
  1330. =========================================================================
  1331. Date:         Thu, 3 Mar 1994 18:23:41 EST
  1332. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1333. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1334. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  1335. Subject:      Re(6: Event handlers: how?
  1336. In-Reply-To:  In reply to your message of WED 02 MAR 1994 21:18:34 EST
  1337.  
  1338. >If you calling a script as *part* of your application, eg through a
  1339. >an OSAExecuteEvent call, and you have defined an extra event class in
  1340. >the aete of your application (or respond to the get aete event with one)
  1341. >then you can use your defined terminology as the name of a handler
  1342. >for your event class. I have a number of such events defined for actions
  1343. >generated within my own windows and sent to scripts attached to those windows.
  1344.  
  1345.     Is this perhaps new with AS1.1? I've confirmed that doing an
  1346. OSACompile from within my app before OSADoEvent does nothing to help
  1347. AS interpret the script's vocabulary correctly. I'm running AS1.0.
  1348.  
  1349.     Even so, this means that one *must* provide script-editing windows
  1350. and other such support within one's app, since the Script Editor can't
  1351. compile such handlers properly. This is somewhat of a drag.
  1352.  
  1353.     I've been trying to track down a solution for a little while now,
  1354. and I think I've found the most viable courses of action. I'll post
  1355. a summary of what I've learned tonight -- I have a few more things to
  1356. test.
  1357.  
  1358.     Mark Aiken
  1359.     inra@musicb.mcgill.ca
  1360. =========================================================================
  1361. Date:         Thu, 3 Mar 1994 17:10:55 -0800
  1362. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1363. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1364. From:         David Ray <daver@NETCOM.COM>
  1365. Subject:      Re: InterSLIP/AE source...can't get download it
  1366.  
  1367. I had a similar problem with the InterSLIP/AE *application* on ftp.netcom.com
  1368. in pub/leonardr/Hacks. The unix utility "mcvert" reported an error and
  1369. couldn't de-binhex it. However, I downloaded the binhex file and Stuffit
  1370. Expander debinhexed it just fine.
  1371.  
  1372. -Dave
  1373. =========================================================================
  1374. Date:         Fri, 4 Mar 1994 01:44:13 EST
  1375. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1376. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1377. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  1378. Subject:      Re(6): Event handlers: how?
  1379. In-Reply-To:  In reply to your message of THU 03 MAR 1994 01:00:42 EST
  1380.  
  1381.     For those who are interested (This is of limited usefulness unless,
  1382. like me, you're writing an app that benifits from this kind of fun-
  1383. ctionality), here's what I've discovered about writing handlers for
  1384. Apple Events in AppleScript:
  1385.  
  1386.     -- The Script Editor consults 'aete' resources only when compiling
  1387. 'tell' commands. As a result, it's difficult (not not impossible, see
  1388. below) to write handlers with the syntax "on myEvent...". The manual
  1389. workaround is:
  1390.  
  1391. on <<event ABCDabcd>> of directParam given <<property efgh>>:otherParam.
  1392.  
  1393.     This creates a handler for the Apple Event of class ABCD and of
  1394. ID abcd, with the direct object parameter being assigned to directParam
  1395. and another parameter of keyword type efgh being assigned to otherParam.
  1396.  
  1397.     -- At least two people have told me that compiling a script from
  1398. within an application with a valid 'aete' should cause AS to refer to
  1399. the app's vocabulary when compiling event handlers. I can't seem to get
  1400. this to work, but my immediate take on this is that it implies that
  1401. one must write script editing facilities into one's app to get this
  1402. functionality.
  1403.  
  1404.     -- Partial/possible solution: AS always refers to OSAXen 'aete's
  1405. when compiling ANYTHING. I checked tonight that creating an OSAX with
  1406. the appropriate 'aete' resource will cause the Script Editor to cor-
  1407. rectly compile handlers of the form
  1408.  
  1409. on myEvent of DirectParam paramLabel anotherParam
  1410.  
  1411.     Note that you can use the human-language paramLabel (the name of
  1412. the parameter you wish to assign to otherParam) and the real name of
  1413. the event.
  1414.  
  1415.     This is somewhat of a kludge, however, and I'm debating whether it
  1416. would be such a hot idea to ship an app with an "enabler" OSAX that
  1417. provides the 'aete' for such attractive-looking syntax, or whether that
  1418. would contravene some Thought Police commandment. Thoughts on this
  1419. are welcomed.
  1420.  
  1421.     That's it. I hope this helps someone -- in particular, it took me
  1422. a while to unearth the <<property 1234>> syntax.
  1423.  
  1424.     Mark Aiken
  1425.     inra@musicb.mcgill.ca
  1426. =========================================================================
  1427. Date:         Thu, 3 Mar 1994 14:07:31 PDT
  1428. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1429. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1430. From:         "Adam C. Engst" <ace@TIDBITS.COM>
  1431. Organization: TidBITS
  1432. Subject:      SITcomm crashing on Send File
  1433.  
  1434. In Regards to your letter <199403031845.AA16437@nwnexus.wa.com>:
  1435. > Whenever I ty using a script that includes the Send File command in
  1436. > SITcomm, my machine crashes.  An example of the last script I tried is
  1437. > below.
  1438. >
  1439. > I drop into macsbug, and this is what I see (I have no idea what this means)=
  1440. > :
  1441. >
  1442. > Bus error @ 40818B4A _GetWRefCon+0008
  1443. > While reading long word from 802704D8 in user data space.
  1444. >
  1445. > Any ideas?  Could it be an extension conflict (I run a whole mess of them).
  1446.  
  1447. It certainly might be an extension conflict, but I've seen exactly
  1448. the same behavior. Interestingly, I get the crash _after_ the file
  1449. sends, and the file transfers OK. I just have to log on again (to
  1450. BIX in this case) and finish dealing with the file. I don't see the
  1451. same behavior manually.
  1452.  
  1453. I've already reported this to Leonard...
  1454.  
  1455. cheers ... -Adam
  1456.  
  1457. --
  1458. Adam C. Engst, TidBITS Editor -- ace@tidbits.com -- info@tidbits.com
  1459. Author of The Internet Starter Kit for Macintosh -- tisk@tidbits.com
  1460. =========================================================================
  1461. Date:         Sat, 5 Mar 1994 01:08:00 JST
  1462. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1463. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1464. From:         =?ISO-2022-JP?B?GyRAQD44NiEhOTA8IxsoSg==?=
  1465.               <PBB00464@NIFTYSERVE.OR.JP>
  1466. Subject:      unsubscribe
  1467.  
  1468. Please remove my ID from your list.
  1469. Maybe I have become a stranger in INTERNET.
  1470. I will take part in after some learning.
  1471.  
  1472. Hiroji Nishihara / PBB00464@niftyserve.or.jp
  1473. =========================================================================
  1474. Date:         Thu, 3 Mar 1994 17:30:28 MST
  1475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1477. From:         Mel Walker <Mel_Walker@NOVELL.COM>
  1478. Subject:      Different Dialects, Same Script - How? Possible?
  1479.  
  1480. Field-1:
  1481. Is it possible (with currently published information) to create a different
  1482.  dialect for AppleScript, and still have it compile/parse to the same end result
  1483.  as AppleScript does now? Does the spec for the format of script resources exist
  1484.  anywhere but in the depths of Apple?
  1485.  
  1486. The advantage of this, as I see it, would be that this component would parse and
  1487.  compile source code, and the AppleScript component could handle the executing
  1488.  part. It might save work on the programmer's part.
  1489.  
  1490. --Mel Walker
  1491. mwalker@novell.com
  1492.  
  1493.  
  1494. ---Begin attached file "QMFORM.FRM".Z---
  1495.  
  1496. begin 666 "QMFORM.FRM".Z
  1497. M'YV048Q(:1*E"9(I ,@H*&CDR4 7 IMD<(,( (LF[ !,T 0%P+Q0\ #4V0(
  1498. M@ 8;[@ ( ""#99,I1XJ4G$FSIDT  7#JO,ESIJ8F$7L*+9FSZ%">:!H.O&EC
  1499. M:%.C1WDVG1E 1(!X*@&(F:DG0#L !68. , @ *":?(AZN IV)@$ "0"XV)G$
  1500. M#)6M-ED,U0LU:MZ$!YK4D=,B"!PX "@H: (%BA,D1X1 "9($ ),Y<W+2S/E@
  1501. %2(2=)0$,
  1502.  
  1503. end
  1504.  
  1505. ---End attached file "QMFORM.FRM".Z---
  1506. =========================================================================
  1507. Date:         Fri, 4 Mar 1994 12:28:22 -0600
  1508. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1509. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1510. From:         Evan Kahn <elkahn@STUDENTS.WISC.EDU>
  1511. Subject:      AS 1.1
  1512.  
  1513. Hello everyone!
  1514.         I was just wondering where I could download a copy of AppleScript
  1515. 1.1.  All I have is 1.0.
  1516.  
  1517. (PS - Just don't tell me that I have to buy it.... )
  1518.  
  1519.  
  1520.  
  1521. *****************************************************************************
  1522.   _____   _       _    __
  1523.  | ____| | |     | |  / /    Evan L Kahn
  1524.  | |__   | |     | | / /     University of Wisconsin
  1525.  |  __|  | |     | |< <      DoIT - Depratment of Information and Technology
  1526.  | |___  | |___  | | \ \     elkahn@students.wisc.edu
  1527.  |_____| |_____| |_|  \_\    ekahn@vms3.macc.wisc.edu
  1528.  
  1529.                     "Curiouser and curiouser............"
  1530.  
  1531. *****************************************************************************
  1532. =========================================================================
  1533. Date:         Fri, 4 Mar 1994 10:35:30 -0800
  1534. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1535. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1536. From:         David Lewis <lewis@NETCOM.COM>
  1537. Subject:      MacPPP OSAX under Frontier's FinderMenu
  1538.  
  1539. Ok, I've gotten a good copy of MacPPP Control. I've installed it into
  1540. Frontier using the Load OSAX droplet. The script fragment
  1541.  
  1542.         if PPPOpened () {
  1543.             closePPP ()
  1544.             }
  1545.  
  1546. works fine if executed from Frontier (placed into a script which is
  1547. executed from the Quick Script window). If called from FinderMenu, however,
  1548. it will hang the machine if the closePPP () clause is executed. I've tried
  1549. various combinations of clock.waitSeconds inserted before and after the
  1550. call, and I've also tried Frontier.bringToFront before the fragment is
  1551. executed. Nothing so far helps. Any assistance would be appreciated.
  1552. Thanks.
  1553.  
  1554.         David
  1555.  
  1556. ------------------------------------------------------------------------
  1557. David Lewis               lewis@netcom.com                (408) 439-2374
  1558. =========================================================================
  1559. Date:         Fri, 4 Mar 1994 13:20:38 -0600
  1560. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1561. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1562. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1563. Subject:      Re: AS 1.1
  1564. In-Reply-To:  Your message of "Fri,
  1565.               04 Mar 94 12:28:22 CST." <9403041914.AA03073@lks.lks.csi.com>
  1566.  
  1567. > Hello everyone!
  1568. >         I was just wondering where I could download a copy of AppleScript
  1569. > 1.1.  All I have is 1.0.
  1570. >
  1571. > (PS - Just don't tell me that I have to buy it.... )
  1572.  
  1573. I'll let someone else tell you that you have to buy it from MacConnection,
  1574. MacWarehouse or APDA. :-/
  1575.  
  1576. pf
  1577.  
  1578.  
  1579. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1580. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  1581.  
  1582. "Bad spellers of the world, untie!"
  1583.                                         --Graffito
  1584. =========================================================================
  1585. Date:         Fri, 4 Mar 1994 12:41:15 -0800
  1586. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1587. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1588. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1589. Subject:      Re: Different Dialects, Same Script - How? Possible?
  1590.  
  1591. At 17:30 3/3/94 -0700, Mel Walker wrote:
  1592. >Is it possible (with currently published information) to create a different
  1593. > dialect for AppleScript, and still have it compile/parse to the same end
  1594. >result
  1595. > as AppleScript does now? Does the spec for the format of script resources
  1596. >exist
  1597. > anywhere but in the depths of Apple?
  1598.  
  1599. Well, Apple ships English, French, and Japanese dialects with the Developer
  1600. Kit form of AppleScript 1.1.  I didn't install the Japanese (having to way
  1601. to tell whether what it does is sensible or not).  I have played with the
  1602. =46rench.
  1603.  
  1604. tell application "Quill"
  1605.     make new document
  1606. end tell
  1607.  
  1608. becomes
  1609.  
  1610. utilise l'application "Quill"
  1611.    cr=E9e autre document
  1612. fin de utilise
  1613.  
  1614. [if your mailer doesn't do the quoted stuff, the thing before "autre" is
  1615. "cree" with an accent on the first e']
  1616.  
  1617. It's real hard to switch in Script Editor:  go into AppleScript
  1618. =46ormattting... under the Edit menu.  There's a popup showing all the
  1619. installed dialects.  The above change happened instantly when I did that.
  1620. If you compile a script in English and send to to a French Mac, it will run
  1621. fine, and it will appear in French when opened.
  1622.  
  1623. I think Inside Mac: IAC includes everything you need to know [except
  1624. afterthoughts which may appear in Tech Notes].  You could create LISP-like
  1625. syntax if you wanted to, probably.
  1626.  
  1627.  
  1628. -------
  1629. Have I missed anything because your mailer doesn't put headers into the
  1630. message which cause my mailer (Eudora) to decode the uucoded (I think it
  1631. is) part of your message?
  1632.  
  1633. --
  1634. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1635.    "This is the network of our disconnect"
  1636. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1637. =========================================================================
  1638. Date:         Fri, 4 Mar 1994 13:30:55 -0800
  1639. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1640. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1641. From:         Scott Trotter <strotter@NETCOM.COM>
  1642. Subject:      Re: AS 1.1
  1643.  
  1644. >> Hello everyone!
  1645. >>         I was just wondering where I could download a copy of AppleScript
  1646. >> 1.1.  All I have is 1.0.
  1647. >>
  1648. >> (PS - Just don't tell me that I have to buy it.... )
  1649. >
  1650. >I'll let someone else tell you that you have to buy it from MacConnection,
  1651. >MacWarehouse or APDA. :-/
  1652. >
  1653. >pf
  1654.  
  1655.  
  1656. FEI (for everyone's information) I bought the AppleScript Scripter's
  1657. Toolkit earlier this week -- here's what I learned: First, none of the
  1658. local (Portland) retail computer dealers or software stores carried
  1659. AppleScript in any form, not even a normally well-stocked place like
  1660. Computer City. I called the 3 major mail-order outfits (Warehouse,
  1661. Connnection & Zone), and it was out-of-stock everywhere *except*
  1662. MacWarehouse, which had the highest price ($149 + 3). The other 2 places
  1663. weren't expecting a new shipment for about 2 weeks. It didn't occur to me
  1664. to call APDA, but looking in their catalog just now, I only see the
  1665. Software Developers Toolkit, listed for $199 + shipping.
  1666.  
  1667. I was also hunting for HyperCard 2.2, which includes the AS 1.1 runtime
  1668. kit. All of the above places, *including* MacWarehouse, were out-of-stock.
  1669.  
  1670. I went ahead and bought the Scripter's Toolkit because a) I was in a hurry,
  1671. and b) I wanted Frontmost. But Evan raises an interesting point. The AS 1.0
  1672. runtime components are easily available from a variety of sources such as
  1673. System 7 Pro, The Tao of AppleScript, the Developer's CDs and other Apple
  1674. support CDs. How does Apple expect those people who've obtained a
  1675. legitimate copy of AS 1.0 to upgrade to version 1.1?
  1676.  
  1677.  
  1678. ======================================================================
  1679. Scott Trotter          Desktop Strategies       Beaverton, Oregon, USA
  1680. email: strotter@netcom.com    fax: 503.641.2983    voice: 503.641.3741
  1681. =========================================================================
  1682. Date:         Fri, 4 Mar 1994 16:25:59 CST
  1683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1685. From:         Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
  1686. Subject:      Re: AS 1.1
  1687.  
  1688. > Hello everyone!
  1689. >         I was just wondering where I could download a copy of AppleScript
  1690. > 1.1.  All I have is 1.0.
  1691. >
  1692. > (PS - Just don't tell me that I have to buy it.... )
  1693.  
  1694. I have heard that it is available with the latest HyperCard for
  1695. developers to distribute....I can't find said package.
  1696.  
  1697. If you should get your hands on it, I would like very much to move from
  1698. v1.0 that I have to the v1.1, as well.
  1699.  
  1700. Thanks,
  1701.  
  1702. Taylor
  1703. =========================================================================
  1704. Date:         Fri, 4 Mar 1994 17:11:30 -0800
  1705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1707. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1708. Subject:      Re: AS 1.1
  1709.  
  1710. > But Evan raises an interesting point. The AS 1.0
  1711. >runtime components are easily available from a variety of sources such as
  1712. >System 7 Pro, The Tao of AppleScript, the Developer's CDs and other Apple
  1713. >support CDs. How does Apple expect those people who've obtained a
  1714. >legitimate copy of AS 1.0 to upgrade to version 1.1?
  1715.  
  1716. Apple doesn't expect this (I think), but people who have Danny Goodman's
  1717. Complete AppleScript Handbook can order an update disk which includes
  1718. AppleScript 1.1 and a discussion of the changes (that is, the changes AS
  1719. 1.1 causes in the book).  And perhaps other stuff.  To quote Danny:
  1720.  
  1721. -------
  1722. Yes, you can order the $4.95 diskette from Random House by phone.  It
  1723. contains AS 1.1 runtime software plus: an RTF file with about 50pp more
  1724. book with explanations of 1.1 features and enhancements; a sample Frontmost
  1725. application; the Frontmost runtime extension.  Call Random House at
  1726. 800-733-3000 (or 212-572-6045 int'l) and order the AppleScript Handbook
  1727. Update Disk,
  1728. ISBN 0-679-75537-3.
  1729. ---------
  1730.  
  1731. There were problems recently with the pricing...they should have been
  1732. ironed out (at least, late last week a Random House VP said they would be
  1733. ironed out this week).  Prices which have been charged include $4.75, $4.75
  1734. plus $2 shipping, and $2 shipping (it appears there were multiple SKUs with
  1735. different prices in their order system).
  1736.  
  1737. I said owners of the book can order this.  But the order people aren't
  1738. demanding proof of ownership ("read the second paragraph on page 300" would
  1739. work, I suppose).
  1740.  
  1741. And, I understand that APDA still can be talked out of the $20 "runtime"
  1742. AppleScript package, in 1.1 form.  At least, one person reported having
  1743. been able to do so.
  1744.  
  1745. --John
  1746.  
  1747. --
  1748. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1749.    "This is the network of our disconnect"
  1750. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1751. =========================================================================
  1752. Date:         Thu, 3 Mar 1994 21:21:51 -0500
  1753. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1754. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1755. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  1756. Organization: L'AISON - Beverly Hills, Michigan
  1757. Subject:      Re(2): Problem with SITcomm AS
  1758.  
  1759. Leonard Rosenthal writes, among other things:
  1760.  
  1761. > ...our forthcoming 1.0.1 update.
  1762.  
  1763. *smile*
  1764.  
  1765. Do we know the release date for 1.0.1?
  1766.  
  1767. Thanks from a SITComm lover,
  1768. Jay
  1769.  
  1770. --
  1771. ==========================jayh@laison.w8hd.org=========================
  1772.   Metallica,||   When a man lies he murders / Some part of the world
  1773.    To Live  ||These are the pale deaths which / Men miscall their lives
  1774.      is     ||     All this I cannot bear / To witness any longer
  1775.    To Die   ||     Cannot the kingdom of salvation / Take me home
  1776. =======================================================================
  1777. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  1778. I'm too self-interested to  -==- permission to reproduce it in any form
  1779. speak for anyone else.      -==- unless otherwise explicitly stated.
  1780. =========================================================================
  1781. Date:         Sat, 5 Mar 1994 00:23:29 -0500
  1782. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1783. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1784. From:         Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
  1785. Subject:      Word Wrapping under AppleScript
  1786.  
  1787. Anyone have any code under AppleScript which does word wrapping?
  1788.  
  1789. I need to convert a variable without returns into one that is wrapped to
  1790. less than 80 characters.  I would think that I could just start at
  1791. character 80 of the paragraph, and move in until I find a space (or if I
  1792. don't, move out from 80 until one is found).
  1793.  
  1794. Bob
  1795.  
  1796. --
  1797. Bob Snyder N2KGO                                      MIME, RIPEM mail accepted
  1798. snyderra@dunx1.ocs.drexel.edu                        finger for RIPEM public key
  1799. <A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
  1800. =========================================================================
  1801. Date:         Sat, 5 Mar 1994 11:00:54 EST
  1802. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1803. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1804. From:         Steve Michel <72511.151@COMPUSERVE.COM>
  1805. Subject:      AS word wrap
  1806.  
  1807. Bob Snyder wanted to know about doing word wrap by AppleScript. Here's a
  1808. handler I wrote in an afternoon, but haven't really tested. If anyone improves
  1809. it, I'd like to see the code.
  1810.  
  1811. Call with:
  1812.  
  1813. copy wordWrap(1,75,theText) to theText
  1814.  
  1815. Steve
  1816.  
  1817. to wordWrapText(startChar, lineLength, theText)
  1818.  -- Recursively breaks a chunk of text into lines that are each less than
  1819. lineLength long.
  1820.  -- It won't make short lines longer!
  1821.  copy startChar + lineLength to endChar
  1822.  if startChar > length of theText then -- past the end? then unwind recursion
  1823.   return ""
  1824.  end if
  1825.  if endChar > length of theText then -- will we go past the end?
  1826.   return characters startChar thru (length of theText) of theText as text
  1827.  end if
  1828.  if character endChar of theText is space then -- are we going to break on a
  1829. space?
  1830.   return (characters startChar thru endChar of theText as text) & return & ~
  1831.    wordWrapText(endChar + 1, lineLength, theText)
  1832.  else -- not a space, so count backwards
  1833.   repeat with x from endChar to startChar by -1
  1834.    if character x of theText is in "\r.,!-" then
  1835.     return (characters startChar thru (x - 1) of theText as text) & return & ~
  1836.      wordWrapText(x + 1, lineLength, theText)
  1837.    end if
  1838.   end repeat
  1839.  end if
  1840. end wordWrapText
  1841. =========================================================================
  1842. Date:         Sat, 5 Mar 1994 07:41:00 PST
  1843. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1844. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1845. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  1846. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  1847.  
  1848. >Ok, I've gotten a good copy of MacPPP Control. I've installed it into
  1849. >Frontier using the Load OSAX droplet. The script fragment
  1850. >
  1851. >        if PPPOpened () {
  1852. >            closePPP ()
  1853. >            }
  1854. >
  1855. >works fine if executed from Frontier (placed into a script which is
  1856. >executed from the Quick Script window). If called from FinderMenu, however,
  1857. >it will hang the machine if the closePPP () clause is executed. I've tried
  1858. >various combinations of clock.waitSeconds inserted before and after the
  1859. >call, and I've also tried Frontier.bringToFront before the fragment is
  1860. >executed. Nothing so far helps. Any assistance would be appreciated.
  1861. >Thanks.
  1862.  
  1863. Humm, I'm no sure what to say.  I use MacPPP Control in a series of
  1864. AppleScript script applications which I execute from MenuChoice.  I also
  1865. have scripts running from my Scheduler application useing MacPPP Control
  1866. with no trouble.
  1867.  
  1868. I don't have Frontier on my system so I can't test with it.  I'm willing to
  1869. supply the source for the MacPPP Control OSAX if thet will help you address
  1870. the problem.
  1871.  
  1872. -Mark
  1873. =========================================================================
  1874. Date:         Sat, 5 Mar 1994 12:59:06 -0600
  1875. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1876. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1877. From:         Richard Millward <rsm@MCS.COM>
  1878. Subject:      address for Main Event Software?
  1879.  
  1880. Does anybody have contact information for Main Event Software (developers
  1881. of the Scripter development enviroment)? The FAQ doesn't currently have
  1882. it... TIA.
  1883.  
  1884. Richard Millward
  1885. MCSNet/Chicago
  1886. rsm@mcs.com
  1887. =========================================================================
  1888. Date:         Sat, 5 Mar 1994 13:51:11 -0600
  1889. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1890. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1891. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1892. Subject:      Re: address for Main Event Software?
  1893. In-Reply-To:  Your message of "Sat,
  1894.               05 Mar 94 12:59:06 CST." <9403051859.AA17559@lks.lks.csi.com>
  1895.  
  1896. >Does anybody have contact information for Main Event Software (developers
  1897. >of the Scripter development enviroment)? The FAQ doesn't currently have
  1898. >it... TIA.
  1899.  
  1900. Main Event's phone number is 202-298-9595.
  1901.  
  1902. pf
  1903.  
  1904.  
  1905.  
  1906. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1907. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  1908.  
  1909. "Bad spellers of the world, untie!"
  1910.                                         --Graffito
  1911. =========================================================================
  1912. Date:         Sun, 6 Mar 1994 20:58:01 -0800
  1913. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1914. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1915. From:         David Lewis <lewis@NETCOM.COM>
  1916. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  1917.  
  1918. >
  1919. >I don't have Frontier on my system so I can't test with it.  I'm willing to
  1920. >supply the source for the MacPPP Control OSAX if thet will help you address
  1921. >the problem.
  1922. >
  1923. >-Mark
  1924.  
  1925. Well, I'd be happy to try. I can't make any guarantees, but I'll forward it
  1926. to some of the folks at UserLand if nothing leaps out at me. The only
  1927. danger is that I might learn something.
  1928.  
  1929.         David
  1930.  
  1931. ------------------------------------------------------------------------
  1932. David Lewis               lewis@netcom.com                (408) 439-2374
  1933. =========================================================================
  1934. Date:         Tue, 8 Mar 1994 00:13:59 -0600
  1935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1937. From:         "Y. Doug Uno" <uno@CS.UIUC.EDU>
  1938. Subject:      AppleScript Eudora to Excel
  1939.  
  1940. I am trying to collect data from Eudora and make the worksheet of those data
  1941. on Excel.  I could handle getting data from Eudora, but Excel seems me very
  1942. choosy.  I used "open dictionary", I read "XL4 document" in
  1943. gaea.kgs.ukans.edu.
  1944. But I could not figure out.
  1945.  
  1946. My applescript is as follows.  Could you help me fill up the Excel part?
  1947.  
  1948. ******************************
  1949. tell application "Eudora2.0.1"
  1950.         set N to CountElements Mailbox "In" of Mail Folder "" each Message
  1951.         repeat with i from 1 to N by 1
  1952.                 set S to GetData the Sender of Message i of Mailbox "In" of
  1953. Mail Folder ""
  1954.                 set D to GetData the Date of Message i of Mailbox "In" of
  1955. Mail Folder ""
  1956.                 set Sub to GetData the Subject of Message i of Mailbox "In"
  1957. of Mail Folder ""
  1958.                 tell application "Microsoft Excel"
  1959.  
  1960.                 -- I NEED YOUR HELP HERE!
  1961.                 -- making spreadsheet which have 3 columns
  1962.                 -- 1st column is for S (sender)
  1963.                 -- 2nd column is for D (date)
  1964.                 -- 3rd column is for Sub (subject)
  1965.  
  1966.                 end tell
  1967.         end repeat
  1968. end tell
  1969. *****************************
  1970.  
  1971. Thanks in advance.
  1972.  
  1973. //Doug Uno  -- uno@cs.uiuc.edu  --  University of Illinois
  1974. =========================================================================
  1975. Date:         Tue, 8 Mar 1994 08:05:33 -0800
  1976. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1977. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1978. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  1979. Subject:      ClarisWorks support AppleScript?
  1980.  
  1981. At $29 for a copy to replace the copy of Claris Resolve that I bought a
  1982. while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
  1983.  
  1984. Kee Nethery
  1985.  
  1986. _________________________________________________________________
  1987. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  1988. Seen on the net: "High Level CIA Person = $1.5 Million,
  1989. Clipper-Chip Escrow Officer = $?"
  1990. =========================================================================
  1991. Date:         Tue, 8 Mar 1994 12:04:23 -0500
  1992. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1993. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1994. From:         Herb Schilling <hschilling@LERC.NASA.GOV>
  1995. Subject:      Re: ClarisWorks support AppleScript?
  1996.  
  1997. >At $29 for a copy to replace the copy of Claris Resolve that I bought a
  1998. >while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
  1999. >
  2000.  
  2001. Hello,
  2002.  
  2003.  Sorry I don't know the answer but I was wondering where you heard about
  2004. the $29 sidegrade ? Thanks.
  2005.  
  2006. --
  2007. Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
  2008. Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 sshws@convx1.lerc.nasa.gov
  2009. AppleLink: SCHILLING.H
  2010. =========================================================================
  2011. Date:         Tue, 8 Mar 1994 10:20:46 -0800
  2012. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2013. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2014. From:         Dennis Gately <dennis_gately@QUICKMAIL.APPLE.COM>
  2015. Subject:      Re: ClarisWorks support Appl
  2016.  
  2017.                    RE>ClarisWorks support Appl
  2018. In answer to:
  2019.  
  2020. >At $29 for a copy to replace the copy of Claris Resolve that I bought a
  2021. >while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
  2022. >
  2023.  
  2024. ClarisWorks 2.0v1 supports the following:
  2025.  
  2026. The required AppleEvent Suite
  2027.  
  2028.    Quit
  2029.    Print
  2030.    Open Doc
  2031.    Open application
  2032.  
  2033. A Core Subset, consisting of:
  2034.  
  2035.    Get Data
  2036.    Set Data
  2037.  
  2038. & the objects:
  2039.  
  2040.    Document
  2041.    Record
  2042.    Field
  2043.    Cell
  2044.  
  2045. That's what opening ClarisWorks as an AppleScript Dictionary tells me!
  2046. =========================================================================
  2047. Date:         Tue, 8 Mar 1994 14:48:58 -0500
  2048. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2049. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2050. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  2051. Subject:      Re> Re: ClarisWorks support AppleScript?
  2052.  
  2053. Currently, ClarisWorks does not include AS support, but it is planned for the
  2054. next release (according to Claris). Be sure to talk to any Claris people you
  2055. know about Object Model support! The more people ask for it, the better the
  2056. chances are that it'll be implemented quickly.
  2057.  
  2058. The $29 sidegrade was announced on America Online (at least that's where I
  2059. found it), and I also just got a letter from Claris in the mail.
  2060.  
  2061.  ------ From: Macintosh Scripting Systems, Mar 8, 1994 ------
  2062.  
  2063. Hello,
  2064.  
  2065.  Sorry I don't know the answer but I was wondering where you heard about
  2066. the $29 sidegrade ? Thanks.
  2067. =========================================================================
  2068. Date:         Tue, 8 Mar 1994 17:45:40 U
  2069. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2070. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2071. From:         Network Manager <Network_Manager.NY_Global_UNIX_GW@JPMORGAN.COM>
  2072. Subject:      Re: AppleScript Eudora to Excel
  2073.  
  2074. >From 10:30 am Mar, 7 through 12 Noon March 8, there was an intermittent
  2075. problem with the software that handles messages between UnixMail and
  2076. MacMail.  This problem caused some messages to be sent to an error queue
  2077. instead of to the indicated MacMail or UnixMail recipient(s).
  2078.  
  2079. A message from your e-mail account was included in this error queue.  If you
  2080. originated this message from UnixMail, it was not delivered to the MacMail
  2081. recipient(s).  If you originated this message from MacMail, it was not
  2082. delivered to the UnixMail recipient(s).
  2083.  
  2084. We apologize for any inconvenience this software problem has caused you.
  2085.  
  2086. New York E-Mail Group.
  2087.  
  2088.  
  2089. _______________________________________________________________________________
  2090. From: Macintosh Scripting Systems on Tue, Mar 8, 1994 4:50 AM
  2091. Subject: AppleScript Eudora to Excel
  2092. To: Multiple recipients of list MACSCRPT
  2093.  
  2094. I am trying to collect data from Eudora and make the worksheet of those data
  2095. on Excel.  I could handle getting data from Eudora, but Excel seems me very
  2096. choosy.  I used "open dictionary", I read "XL4 document" in
  2097. gaea.kgs.ukans.edu.
  2098. But I could not figure out.
  2099.  
  2100. My applescript is as follows.  Could you help me fill up the Excel part?
  2101.  
  2102. ******************************
  2103. tell application "Eudora2.0.1"
  2104.         set N to CountElements Mailbox "In" of Mail Folder "" each Message
  2105.         repeat with i from 1 to N by 1
  2106.                 set S to GetData the Sender of Message i of Mailbox "In" of
  2107. Mail Folder ""
  2108.                 set D to GetData the Date of Message i of Mailbox "In" of
  2109. Mail Folder ""
  2110.                 set Sub to GetData the Subject of Message i of Mailbox "In"
  2111. of Mail Folder ""
  2112.                 tell application "Microsoft Excel"
  2113.  
  2114.                 -- I NEED YOUR HELP HERE!
  2115.                 -- making spreadsheet which have 3 columns
  2116.                 -- 1st column is for S (sender)
  2117.                 -- 2nd column is for D (date)
  2118.                 -- 3rd column is for Sub (subject)
  2119.  
  2120.                 end tell
  2121.         end repeat
  2122. end tell
  2123. *****************************
  2124.  
  2125. Thanks in advance.
  2126.  
  2127. //Doug Uno  -- uno@cs.uiuc.edu  --  University of Illinois
  2128. =========================================================================
  2129. Date:         Tue, 8 Mar 1994 16:58:47 -0800
  2130. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2131. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2132. From:         Richard Kline <kliner@SYNOPSYS.COM>
  2133. Subject:      Re: AppleScript Eudora to Excel
  2134.  
  2135. Doug Uno Wrote the following
  2136.  
  2137. >_______________________________________________________________________________
  2138. >From: Macintosh Scripting Systems on Tue, Mar 8, 1994 4:50 AM
  2139. >Subject: AppleScript Eudora to Excel
  2140. >To: Multiple recipients of list MACSCRPT
  2141. >
  2142. >I am trying to collect data from Eudora and make the worksheet of those data
  2143. >on Excel.  I could handle getting data from Eudora, but Excel seems me very
  2144. >choosy.  I used "open dictionary", I read "XL4 document" in
  2145. >gaea.kgs.ukans.edu.
  2146. >But I could not figure out.
  2147. >
  2148. >My applescript is as follows.  Could you help me fill up the Excel part?
  2149. >
  2150. >******************************
  2151. >tell application "Eudora2.0.1"
  2152. >        set N to CountElements Mailbox "In" of Mail Folder "" each Message
  2153. >        repeat with i from 1 to N by 1
  2154. >                set S to GetData the Sender of Message i of Mailbox "In" of
  2155. >Mail Folder ""
  2156. >                set D to GetData the Date of Message i of Mailbox "In" of
  2157. >Mail Folder ""
  2158. >                set Sub to GetData the Subject of Message i of Mailbox "In"
  2159. >of Mail Folder ""
  2160. >                tell application "Microsoft Excel"
  2161. >
  2162. >                -- I NEED YOUR HELP HERE!
  2163. >                -- making spreadsheet which have 3 columns
  2164. >                -- 1st column is for S (sender)
  2165. >                -- 2nd column is for D (date)
  2166. >                -- 3rd column is for Sub (subject)
  2167. >
  2168. >                end tell
  2169. >        end repeat
  2170. >end tell
  2171. >*****************************
  2172. >
  2173. >Thanks in advance.
  2174. >
  2175. >//Doug Uno  -- uno@cs.uiuc.edu  --  University of Illinois
  2176.  
  2177. The following script seems to acomplish what Doug is requesting.  The only
  2178. issue is that to get the script to compile on my machine I need to add the
  2179. word "each" before the word message in line 6.  It then proceeds to be
  2180. eliminated at compile.  Any comments on that issue?
  2181.  
  2182.  
  2183. tell application "Microsoft Excel 4.0"
  2184.         activate
  2185.         make new Document
  2186. end tell
  2187. tell application "Eudora 2.0.2fc1-3.94"
  2188.         set N to CountElements Mailbox "In" of Mail Folder ""  each Message
  2189.         repeat with i from 1 to N by 1
  2190.                 set S to GetData the Sender of Message i of Mailbox "In" of
  2191. Mail Folder ""
  2192.                 set D to GetData the Date of Message i of Mailbox "In" of
  2193. Mail Folder ""
  2194.                 set Sub to GetData the Subject of Message i of Mailbox "In"
  2195. of Mail Folder ""
  2196.                 tell application "Microsoft Excel 4.0 '"
  2197.                         copy S to Cell ("R" & i & "C1")
  2198.                         copy D to Cell ("R" & i & "C2")
  2199.                         copy Sub to Cell ("R" & i & "C3")
  2200.                 end tell
  2201.         end repeat
  2202. end tell
  2203.  
  2204.  
  2205. Rich
  2206.  
  2207. ----------
  2208. Richard Kline
  2209. Synopsys, Inc.                             e-mail: kliner@synopsys.com
  2210. 700 East Middlefield Road                  phone : (415) 694-4079
  2211. Mountain View, CA 94043-4033               fax   : (415) 965-8637
  2212. =========================================================================
  2213. Date:         Tue, 8 Mar 1994 19:34:18 -0600
  2214. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2215. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2216. From:         Richard Millward <rsm@MCS.COM>
  2217. Subject:      Re: ClarisWorks support Appl
  2218.  
  2219. >                   RE>ClarisWorks support Appl
  2220. >In answer to:
  2221. >
  2222. >>At $29 for a copy to replace the copy of Claris Resolve that I bought a
  2223. >>while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
  2224. >>
  2225. >
  2226. >ClarisWorks 2.0v1 supports the following:
  2227. >
  2228. >The required AppleEvent Suite
  2229. >
  2230. >   Quit
  2231. >   Print
  2232. >   Open Doc
  2233. >   Open application
  2234. >
  2235. >A Core Subset, consisting of:
  2236. >
  2237. >   Get Data
  2238. >   Set Data
  2239. >
  2240. >& the objects:
  2241. >
  2242. >   Document
  2243. >   Record
  2244. >   Field
  2245. >   Cell
  2246. >
  2247. >That's what opening ClarisWorks as an AppleScript Dictionary tells me!
  2248.  
  2249. The reality is that the Required Events work sometimes and the subset of
  2250. the core not at all. I was trying to use ClarisWorks as a "tutorial" for
  2251. AppleEvents, since I know CW pretty well, and doing nothing but crashing.
  2252. Claris Tech Support informed me that "ClarisWorks does not officially
  2253. support AppleEvents." Privately, I was told that one call _would_ work, but
  2254. I didn't understand it and wasn't in any mood by that time to even save
  2255. what the syntax of it was. Sorry.
  2256.  
  2257. Richard Millward
  2258. MCSNet/Chicago
  2259. rsm@mcs.com
  2260. =========================================================================
  2261. Date:         Tue, 8 Mar 1994 19:34:24 -0600
  2262. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2263. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2264. From:         Richard Millward <rsm@MCS.COM>
  2265. Subject:      Re: ClarisWorks support AppleScript?
  2266.  
  2267. >>At $29 for a copy to replace the copy of Claris Resolve that I bought a
  2268. >>while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
  2269. >>
  2270. >
  2271. >Hello,
  2272. >
  2273. > Sorry I don't know the answer but I was wondering where you heard about
  2274. >the $29 sidegrade ? Thanks.
  2275. >
  2276.  
  2277. It's in this week's MacWeek - there's an 800 number to call with your
  2278. Resolve serial number at hand and they will trade you ClarisWorks, for
  2279. $29.00, for Resolve which they'll stop selling at the end of this month and
  2280. supporting at the end of March, 1995.
  2281.  
  2282. Richard Millward
  2283. MCSNet/Chicago
  2284. rsm@mcs.com
  2285. =========================================================================
  2286. Date:         Tue, 8 Mar 1994 19:41:07 U
  2287. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2288. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2289. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  2290. Subject:      capabilities of OSAX
  2291.  
  2292.                       capabilities of OSAX
  2293. I'm just starting to come up to speed on AppleScript having been a Frontier
  2294. user for sometime. The most intriguing aspect of its architecture are these
  2295. external commands, the osaxen (great name by the way).
  2296.  
  2297. I have a specific use in mind. I would like to be able to launch a copy of
  2298. Frontier Runtime on a remote Mac from my desk. As is, there's no way to do this
  2299. short of having some other scriptable, Apple Event aware app running on the
  2300. remote machine that can send Runtime the app launch event.
  2301.  
  2302. Would it be possible to call a osax on the remote machine and have it launch
  2303. Runtime? This would have the advantage of not requiring any other apps. I guess
  2304. the question--or one of many-- is how aware is the AppleScript runtime engine?
  2305.  
  2306. Mark Stewart
  2307. Research Imaging Center
  2308. UTHSCSA
  2309. =========================================================================
  2310. Date:         Tue, 8 Mar 1994 21:28:07 -0500
  2311. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2312. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2313. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  2314. Subject:      Frontmost: Need help with Metas!
  2315.  
  2316. Help!
  2317.  
  2318. I've created a window in the Frontmost interface builder that has a listbox
  2319. with the form List-with-metas so that I can display columnar text in a
  2320. scrolling list.  Unfortunately, I cannot set up the list with any items
  2321. that begin with any of the meta control characters [<O, <B, <I, (, etc].
  2322. Is there a way to turn off the list formatting in some cases while leaving
  2323. it on in others, all in the same listbox? I want a columnar list that looks
  2324. like:
  2325.  
  2326. <Begin>    <End>
  2327. <Old>      <New>
  2328. (more)     (less)
  2329.  
  2330. The formatting with the meta control characters also get in the way in
  2331. pop-up menus if any of your menu items contain a parenthesis; the item will
  2332. be disabled.  Any workaround?
  2333.  
  2334. Uncle Dave, are you there?
  2335.  
  2336. Lee.
  2337.  
  2338. Lee K. Hoong
  2339. Dept. of Chemistry, Emory University
  2340. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  2341. Disclaimer: I speak for myself only, not for Emory University
  2342. =========================================================================
  2343. Date:         Tue, 8 Mar 1994 20:25:44 PST
  2344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2346. From:         Mike Crawford <crawford@SCIPP.UCSC.EDU>
  2347. Subject:      Re: ClarisWorks support Appl
  2348. In-Reply-To:  <01H9QKLO0ZYE001CIC@SERV02.SLAC.STANFORD.EDU>; from "Richard
  2349.               Millward" at Mar 8, 94 7:34 pm
  2350.  
  2351. >
  2352. > The reality is that the Required Events work sometimes and the subset of
  2353. > the core not at all. I was trying to use ClarisWorks as a "tutorial" for
  2354. > AppleEvents, since I know CW pretty well, and doing nothing but crashing.
  2355. > Claris Tech Support informed me that "ClarisWorks does not officially
  2356. > support AppleEvents." Privately, I was told that one call _would_ work, but
  2357. > I didn't understand it and wasn't in any mood by that time to even save
  2358. > what the syntax of it was. Sorry.
  2359.  
  2360. Yeah?  Well, they're weenies.  Writeswell Jr. supports Apple Events and you
  2361. can get the source code for free.
  2362.  
  2363. The one on the net is a little out of date.  Send me your postal adress and
  2364. I will mail you a floppy with the source code and the word services
  2365. Apple Event suite specification.  Someday I'll get around to uploading the
  2366. update, but I want to fix some more stuff first.  The source and protocol
  2367. spec contain a lot of tutorial material.
  2368. =========================================================================
  2369. Date:         Tue, 8 Mar 1994 20:32:56 PST
  2370. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2371. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2372. From:         Mike Crawford <crawford@SCIPP.UCSC.EDU>
  2373. Subject:      Re: ClarisWorks support AppleScript?
  2374. In-Reply-To:  <01H9QJ9552YU0018NL@SERV02.SLAC.STANFORD.EDU>; from "Richard
  2375.               Kline" at Mar 8, 94 4:58 pm
  2376.  
  2377. PS.  Here's where you can get writeswell jr. off the net:
  2378.  
  2379. Mike Crawford           | Author of the Word Services Apple Event Suite.
  2380. crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
  2381.                         | get /info-mac/dev/src/writeswell-jr-102-c.hqx
  2382.  
  2383. PS.  I'm speaking on it at MacHack '94 in June.  Here is my abstract:
  2384.  
  2385. The Word Services Apple Event Suite
  2386. Michael D. Crawford
  2387. Product Development Manager
  2388. Working Software, Inc.
  2389.  
  2390. The Word Services Apple Event Suite allows any application to link to
  2391. a speller, grammar checker or other text service as if it was a
  2392. built-in menu item.  Working Software developed the protocol in
  2393. cooperation with our competitors in the spelling business, as well as
  2394. several grammar checker, database and word processor publishers, and
  2395. Apple Computer, Inc.  It is probably the simplest useful thing that a
  2396. developer can do with Apple Events.
  2397.  
  2398. Word Services is designed to be very easy for client programs to
  2399. implement - the client (or word processor) needs only to send a single
  2400. Apple Event to a server program (or spellchecker) and then resume its
  2401. event loop.  The server takes over control of the protocol, retrieving
  2402. and changing text in the client program's document by using a small
  2403. subset of Core Suite Apple Events.  The complete source code to
  2404. Writeswell Jr. will be distributed along with the protocol specification.
  2405. Writeswell Jr. is a simple word processor that supports Word Services,
  2406. and is provided as an example that developers may use to add support for
  2407. the protocol to their own applications.
  2408.  
  2409. Word Services applications have been shipping for over a year and a half.
  2410. Spellers are available in a number of languages, and client programs ranging
  2411. from a curriculum planner with a total of ten users to a major word
  2412. processor have adopted the protocol.  Mr. Crawford will reflect on the
  2413. long process of developing and promoting an industry standard protocol.
  2414. =========================================================================
  2415. Date:         Wed, 9 Mar 1994 07:32:31 -0500
  2416. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2417. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2418. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  2419. Subject:      Full text searches
  2420.  
  2421. So, I've been able to cobble together an AppleScript for use with MacHTTP
  2422. to do full text searches of a given web folder, but the problem is that
  2423. even on a quadra, it takes about 40 seconds to search less than 300K.  Can
  2424. anyone suggest a scriptable application that can I might be able to "drive"
  2425. through aplescript to do the text searches faster?  I looked at UltraFind
  2426. after all the rave reviews, but it doesn't have an "aete,"  so that's not
  2427. it.
  2428.  
  2429. Thanks,
  2430.  
  2431. King Rhoton                                             king@acpub.duke.edu
  2432. =========================================================================
  2433. Date:         Wed, 9 Mar 1994 10:33:05 -0500
  2434. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2435. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2436. From:         Bill Seitz <Bill_Seitz@SCP.COM>
  2437. Subject:      RE>Full text searches
  2438.  
  2439. King Rhoton <king@ACPUB.DUKE.EDU> writes:
  2440. <<So, I've been able to cobble together an AppleScript for use with MacHTTP
  2441. to do full text searches of a given web folder, but the problem is that
  2442. even on a quadra, it takes about 40 seconds to search less than 300K.  Can
  2443. anyone suggest a scriptable application that can I might be able to "drive"
  2444. through aplescript to do the text searches faster?  I looked at UltraFind
  2445. after all the rave reviews, but it doesn't have an "aete,"  so that's not
  2446. it.<<
  2447.  
  2448. You should be asking on the MacHTTP list instead of here!  A couple of us on
  2449. the list are using HyperCard as a back end.  Unfortunately, it's still not
  2450. super fast, and you have to work with 32K chunks (maximum field size).  Our
  2451. company is investigating AppleSearch as an engine, but we have determined just
  2452. what's there in terms of AppleScript or Event support yet (the text search
  2453. folks don't know how to feed back enough info to the requester).
  2454. =========================================================================
  2455. Date:         Wed, 9 Mar 1994 10:14:24 -0600
  2456. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2457. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2458. From:         Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
  2459. Subject:      Re: ClarisWorks support AppleScript?
  2460. In-Reply-To:  Your message of "Tue,
  2461.               08 Mar 1994 20:32:56 PST."
  2462.               <9403090455.AA08456@tools1.ee.iastate.edu>
  2463.  
  2464. >PS.  Here's where you can get writeswell jr. off the net:
  2465. >
  2466. >Mike Crawford           | Author of the Word Services Apple Event Suite.
  2467. >crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
  2468. >                        | get /info-mac/dev/src/writeswell-jr-102-c.hqx
  2469.  
  2470.   Except that sumex is broke and down for awhile. :)
  2471.  
  2472. ---
  2473.  
  2474. -Jim
  2475. =========================================================================
  2476. Date:         Wed, 9 Mar 1994 12:07:56 -0500
  2477. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2478. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2479. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  2480. Subject:      Re> Full text searches
  2481.  
  2482. AppleSearch. ;-)
  2483.  
  2484. Sorry, I don't know of any cost-effective solution!
  2485.  
  2486. Jay
  2487. +---------------------------------------+----------------------------------+
  2488. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  2489. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  2490. |   | ----------+ Development Training  |                  martin@aidt.edu |
  2491. |   +---------------------------------- | (But what do they know?)         |
  2492. +---------------------------------------+----------------------------------+
  2493.  
  2494.  ------ From: Macintosh Scripting Systems, Mar 9, 1994 ------
  2495.  
  2496. So, I've been able to cobble together an AppleScript for use with MacHTTP
  2497. to do full text searches of a given web folder, but the problem is that
  2498. even on a quadra, it takes about 40 seconds to search less than 300K.  Can
  2499. anyone suggest a scriptable application that can I might be able to "drive"
  2500. through aplescript to do the text searches faster?  I looked at UltraFind
  2501. after all the rave reviews, but it doesn't have an "aete,"  so that's not
  2502. it.
  2503.  
  2504. Thanks,
  2505.  
  2506. King Rhoton                                             king@acpub.duke.edu
  2507. =========================================================================
  2508. Date:         Wed, 9 Mar 1994 18:12:28 -0600
  2509. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2510. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2511. From:         Michael Kilgore <mak@TICIPA.WORKS.TI.COM>
  2512. Organization: Texas Instruments, Inc.
  2513. Subject:      max script size?
  2514.  
  2515. Well, I seem to have rammed into a Script Editor (1.0.1) limit on script
  2516. size, namely about 102.7K (the size of the scpt resource in my file).  I
  2517. suppose something of that size might be regarded as rather perverted to
  2518. begin with, but I was hoping to ignore some finding/loading management
  2519. issues for a bit.  Can anyone offer words of wisdom?  Tks much.
  2520.  
  2521. --
  2522. Michael Kilgore     Texas Instruments, Inc.
  2523. (214) 917-2219      mak@works.ti.com
  2524. =========================================================================
  2525. Date:         Thu, 10 Mar 1994 09:09:00 +0000
  2526. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2527. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2528. From:         "john (j.r.) walsh" <jwalsh@BNR.CA>
  2529. Subject:      SIGNON MACSCRP
  2530.  
  2531. SIGNON MACSCRP
  2532. =========================================================================
  2533. Date:         Thu, 10 Mar 1994 08:32:16 -0500
  2534. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2535. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2536. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  2537. Subject:      @#%$ Dates!!
  2538.  
  2539. Well, AppleScript has yet to get date manipulations right, IMHO. I can get
  2540. the "date string of", which returns whatever the Time & Date control panel is
  2541. set to display (i.e. "March 10, 1994", "Thursday, March 10, 1994", etc.). I
  2542. need the date in a string of the form "Month day year".
  2543.  
  2544. OK, I think to myself, I can get the "month of", which returns March. Well, I
  2545. can't seem to be able to coerce this into anything usable. No string (or
  2546. text), no integer, no nothing (actually, it can be put in a list - WOW)! It
  2547. turns out that these are "constants", and constants can't be coerced into
  2548. anything but lists.
  2549.  
  2550. So, does anyone have a good way to solve this problem short of writing a
  2551. (long) handler to get the info I want? Any osaxen out there to do this?
  2552.  
  2553. Thanks,
  2554. Jay
  2555. +---------------------------------------+----------------------------------+
  2556. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  2557. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  2558. |   | ----------+ Development Training  |                  martin@aidt.edu |
  2559. |   +---------------------------------- | (But what do they know?)         |
  2560. +---------------------------------------+----------------------------------+
  2561. =========================================================================
  2562. Date:         Thu, 10 Mar 1994 10:30:49 -0800
  2563. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2564. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2565. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2566. Subject:      Re: capabilities of OSAX
  2567.  
  2568. At 19:41 3/8/94 +0000, mark stewart wrote:
  2569.  
  2570. >I'm just starting to come up to speed on AppleScript having been a Frontier
  2571. >user for sometime. The most intriguing aspect of its architecture are these
  2572. >external commands, the osaxen (great name by the way).
  2573.  
  2574. A simple Scripting Addition of the verb handling kind is exactly the same
  2575. as a Frontier UCMD.  The same source code can be used to build both (and a
  2576. Scripting Addition can be called from Frontier once you discover the Apple
  2577. event it is expecting).  If a Scripting Addition needs resources to do its
  2578. thing, the similarity with the UCMD becomes weaker.
  2579.  
  2580. >I have a specific use in mind. I would like to be able to launch a copy of
  2581. >Frontier Runtime on a remote Mac from my desk. As is, there's no way to do this
  2582. >short of having some other scriptable, Apple Event aware app running on the
  2583. >remote machine that can send Runtime the app launch event.
  2584. >
  2585. >Would it be possible to call a osax on the remote machine and have it launch
  2586. >Runtime? This would have the advantage of not requiring any other apps. I guess
  2587. >the question--or one of many-- is how aware is the AppleScript runtime engine?
  2588.  
  2589. I don't think so.  A Scripting Addition's Apple event handler gets posted
  2590. as a System handler (it can have more than one).  At a minimum, you would
  2591. need to address an event to something running on the remote machine,
  2592. knowing that that something doesn't process the event (doesn't have a
  2593. '****', '****' wildcard handler, for instance).  Would addressing the
  2594. Finder on the remote machine work for that purpose?  I'm not
  2595. sure...experiment to follow.
  2596.  
  2597. --John
  2598.  
  2599. --
  2600. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2601.    "This is the network of our disconnect"
  2602. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2603. =========================================================================
  2604. Date:         Thu, 10 Mar 1994 11:12:23 -0800
  2605. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2606. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2607. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2608.  
  2609. Previously, I said in part:
  2610. >At 19:41 3/8/94 +0000, mark stewart wrote:
  2611.  
  2612. >>Would it be possible to call a osax on the remote machine and have it launch
  2613. >>Runtime? This would have the advantage of not requiring any other apps. I
  2614. >>>>guess
  2615. >>the question--or one of many-- is how aware is the AppleScript runtime engine?
  2616. >
  2617.  
  2618. >I don't think so.  A Scripting Addition's Apple event handler gets posted as
  2619. >a System handler (it can have more than one).  At a minimum, you would need
  2620. >to address an event to something running on the remote machine, knowing that
  2621. >that something doesn't process the event (doesn't have a '****', '****'
  2622. >wildcard handler, for instance).  Would addressing the Finder on the remote
  2623. >machine work for that purpose?  I'm not sure...experiment to follow.
  2624.  
  2625. Experiment notes:
  2626. 1.  Finder 7.1 seems not to allow System event handlers to operate when it
  2627. is the addressed application for a remote event (that wasn't a hugh
  2628. surprise).  [Note that Finder 7.1 also does not have an 'aete', so from
  2629. AppleScript one needs to create "generic" events.
  2630.  
  2631. 2.  Finder 7.1.3 WITH the "Finder Scripting Extension" does seem to allow
  2632. System event handers to operate on events it doesn't process itself.
  2633. [Finder 7.1.3 comes with System 7 Pro and does have an 'aete', but is no
  2634. more scriptable than Finder 7.1.  The Finder Scripting Extension is part of
  2635. the AppleScript Developers Toolkit, and modernizes the Finder with respect
  2636. to Apple events.  It is not yet generally available.
  2637.  
  2638. So, without that software, you don't gain much from a hypothetical
  2639. Scripting Addition running on your remote machine, I guess.
  2640. --John
  2641.  
  2642. --
  2643. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2644.    "This is the network of our disconnect"
  2645. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2646. =========================================================================
  2647. Date:         Thu, 10 Mar 1994 20:32:00 +0000
  2648. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2649. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2650. From:         Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
  2651. Subject:      Re: Full text searches
  2652.  
  2653. >So, I've been able to cobble together an AppleScript for use with MacHTTP
  2654. >to do full text searches of a given web folder, but the problem is that
  2655. >even on a quadra, it takes about 40 seconds to search less than 300K.  Can
  2656. >anyone suggest a scriptable application that can I might be able to "drive"
  2657. >through aplescript to do the text searches faster?  I looked at UltraFind
  2658. >after all the rave reviews, but it doesn't have an "aete,"  so that's not
  2659. >it.
  2660. >
  2661. >Thanks,
  2662. >
  2663. >King Rhoton                                             king@acpub.duke.edu
  2664.  
  2665.  
  2666. Maybe you could try OnLocation. I have not tried it's AE abilities, but it
  2667. does have a Query Suite and has the advantage of building indexes in the
  2668. background.
  2669.  
  2670. Jeremy Quinn
  2671.  
  2672.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  2673.              Jeremy Quinn             :              Internet:
  2674.             3D/Interactive            :       jermq@media.demon.co.uk
  2675.  
  2676.               Designer &              :               Phone:
  2677.         Green Design Consultant       :           +44 71 737 6831
  2678.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  2679.       Member of O2 Global Network     :     PGP Key available on request
  2680. =========================================================================
  2681. Date:         Fri, 11 Mar 1994 10:29:58 -0600
  2682. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2683. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2684. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2685. Subject:      new items on gaea
  2686.  
  2687. I've uploaded some new items to gaea that some of you might be interested in.
  2688.  
  2689. There is a new version of MacPPP. In MacPPP Control 1.1 example scripts are
  2690. stored as text files instead of script applications to allow backward
  2691. compatibility with AS 1.0. Mark also corrected his email address. You'll also
  2692. find a new version of Mount Vol osax in the osaxen directory. It now includes an
  2693. nslookup osaxen and the source code.
  2694.  
  2695. You'll find a brief document describing the Apple Event changes from from
  2696. FileMaker Pro 2.0v4 Mac to 2.1v1. You'll also notice that I've started placing
  2697. the monthly mailing list digests in the /docs/digests directory.
  2698.  
  2699. There is a new version of FolderWatcher in the addons directory. And I have
  2700. gathered several scripts from other sources.
  2701.  
  2702. The Parse script is an AppleScript version of a natural language parser. Be
  2703. warned that it can be slow. There are a collection of scripts for Canvas 3.0.
  2704. I tried to use them with 3.5 and didn't have much luck--read that as my Mac
  2705. froze. The GraphSearch script is an implementation of the GraphSearch
  2706. algorithm in AppleScript. And the Level6Scripts contains a number of scripts
  2707. that you'll find useful with OSA Menu: Show Folder Size Off/On, Convert to SD
  2708. Archive, Path to Clipboard, Remove .sea Code, and Append to Clippings File.
  2709.  
  2710. I've appended the paths to these goodies. Have fun.
  2711.  
  2712. pf
  2713.  
  2714. applescript/osaxen/MacPPPControl.sit.hqx
  2715. applescript/osaxen/MountVolosax.sit.hqx
  2716. applescript/docs/FMProChanges.txt
  2717. applescript/docs/digests/feb94
  2718. applescript/addons/FW2.0.3.sit.hqx
  2719. applescript/scripts/PARSE.sit.hqx
  2720. applescript/scripts/CanvasDemoScripts.sit.hqx
  2721. applescript/scripts/GraphSearch.sit.hqx
  2722. applescript/scripts/LEVEL6ScriptsVol1.sit.hqx
  2723. =========================================================================
  2724. Date:         Fri, 11 Mar 1994 13:47:49 -0500
  2725. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2726. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2727. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  2728. Subject:      New member - questions about scripting Eudora
  2729.  
  2730. First off, hello -- I just joined the list.  I don't seem to be getting too
  2731. many messages (exactly one so far), so hopefully I am actually getting the
  2732. full message feed....
  2733.  
  2734. I've just started using AppleScript.  It's seems fantastic and I've had
  2735. some success scripting for StuffitDeluxe, but I've run into some problems
  2736. trying to figure out how to script Eudora 1.4.2.  According to Eudora's
  2737. dictionary, the "get" command "Works for message & mailbox properties,
  2738. fields, and whole messages."  It also says that if you omit the reference,
  2739. it defaults to the "current" message.
  2740.  
  2741. Leaving off the reference always returns an error from Eudora.  In
  2742. particular I'm trying to get the "isOutgoing" property for the "current"
  2743. message, which I presume means the topmost open message window (correct)?
  2744. I'm using the following test script:
  2745.  
  2746.     tell application "Eudora1.4.2"
  2747.         copy (get IsOutgoing) to openMessageToSend
  2748.  
  2749.         if openMessageToSend then
  2750.             display dialog "Open message to send"
  2751.         else
  2752.             display dialog "No open message to send"
  2753.         end if
  2754.  
  2755.     end tell
  2756.  
  2757.  
  2758. Running this returns an error on "IsOutgoing" saying:
  2759.  
  2760.     Eudora1.4.2 got an error: Can't get IsOutgoing.
  2761.  
  2762. Note that it works fine if I use:
  2763.  
  2764.     copy (get IsOutgoing of message 1) to openMessageToSend
  2765.  
  2766. However, I really have a more fundamental question, because even if I could
  2767. leave out the reference, I suspect this wouldn't do what I want.  The
  2768. problem is that if I reference message 1, but there is no message 1, then
  2769. the script stops with an error.  Is there any way that I can find out IF
  2770. there are message windows open (or better, get a list of open windows)?
  2771. Sorry if the answer to this is extremely basic -- in many ways I find
  2772. AppleScript intuitive, but in others I'm finding it pretty confusing.
  2773.  
  2774. Any help is appreciated,
  2775.  
  2776. Steve
  2777.  
  2778. ---------------------
  2779.  jonke@gsfc.nasa.gov
  2780. ---------------------
  2781. =========================================================================
  2782. Date:         Fri, 11 Mar 1994 13:54:23 -0500
  2783. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2784. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2785. From:         Bill Seitz <Bill_Seitz@SCP.COM>
  2786. Subject:      MacHTTP list
  2787.  
  2788. A number of people have asked me how to join the listserver for MacHTTP
  2789. discussion.  Here's the poop:
  2790.  
  2791. email to: listserv@oac3.hsc.uth.tmc.edu
  2792. body: subscribe machttp_talk firstname lastname
  2793. =========================================================================
  2794. Date:         Fri, 11 Mar 1994 11:28:44 -0800
  2795. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2796. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2797. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2798. Subject:      Re: Remote Launching
  2799.  
  2800. >>Would it be possible to call a osax on the remote machine and have it launch
  2801. >>Runtime? This would have the advantage of not requiring any other apps.
  2802.  
  2803. The 7.x Finders allow remote launching.  All you need is the exact location
  2804. of the program you want to launch.  Here's a snippet from the Finder
  2805. Scripting Toolkit v1.0, Freeware by Daniel Ranson.  I highly recommend this
  2806. script.  It should be on gaea.
  2807.  
  2808. --
  2809. --      RemoteOpenObjectsWithZone
  2810. --
  2811. --      Opens a list of Finder objects, as if they were double-clicked in the
  2812. --      Finder.
  2813. --      This variant sends the command to a remote Finder in any zone.
  2814. --      The aliases must be meaningful to this remote Finder.
  2815. --
  2816. --      Parameters
  2817. --              cont (alias) : folder containing the objects.
  2818. --              objs (alias list) : objects to open.
  2819. --              mach (string) : name of remote machine.
  2820. --              zn (string) : name of zone.
  2821. --
  2822. --      Examples
  2823. --              RemoteOpenObjectsWithZone(alias "Disk:", {alias "Disk:file",
  2824. --              alias "Disk:folder:"}, "Bob's Mac", "2nd floor")
  2825. --
  2826. on RemoteOpenObjectsWithZone(cont, objs, mach, zn)
  2827.         tell application "Finder" of machine mach of zone zn to -- continued
  2828.                 <<event FNDRsope>> cont given <<class fsel>>:objs
  2829. end RemoteOpenObjectsWithZone
  2830.  
  2831. Note that this script has been munged for the mailer.  The << & >> are
  2832. option-\ and option-shift-\.  Some lines have been broken for clarity and
  2833. need to be rejoined or used with an option-l continuation character.
  2834.  
  2835. In addition, in AS 1.1, there is a osiz resource which determines (among
  2836. other things) whether an osax will should get remote events.  I believe the
  2837. default is no.  I think this means that in AS 1.0 osaxen cannot receive
  2838. remote events, but I don't really recall.
  2839.  
  2840. >I don't think so.  A Scripting Addition's Apple event handler gets posted
  2841. >as a System handler (it can have more than one).  At a minimum, you would
  2842. >need to address an event to something running on the remote machine,
  2843. >knowing that that something doesn't process the event (doesn't have a
  2844. >'****', '****' wildcard handler, for instance).
  2845.  
  2846. Even if an app uses a wildcard handler (as many apps do) or handles the
  2847. specific event, if it returns errAEEventNotHandled (-1708) then the event
  2848. will go to the system event handler anyhow.
  2849.  
  2850. >The Finder Scripting Extension is part of
  2851. >the AppleScript Developers Toolkit, and modernizes the Finder with respect
  2852. >to Apple events.  It is not yet generally available.
  2853.  
  2854. All you need is $$$.  In my mind, this makes it generally available.  Many
  2855. of us _are_ in America and $$$ is the name of the game here.
  2856.  
  2857. If you have $199 (or someone who can pay for you, like your employer) or
  2858. $99 for the upgrade (if you bought the AS 1.0 CD) and want the scriptable
  2859. Finder (well worth the money if you are into that sort of thing) then order
  2860. the AS 1.1 CD from APDA.  It makes utility scripts much simpler.
  2861.  
  2862. >So, without that software, you don't gain much from a hypothetical
  2863. >Scripting Addition running on your remote machine, I guess.
  2864.  
  2865. As I pointed out above, you don't even need an osax to do this.
  2866.  
  2867. Jon
  2868.  
  2869. PS
  2870.  
  2871. I've got a beta of Jon's Commands 1.1 ready.  It adds a copyFile command
  2872. and handles lists of files in deleteFile, moveFile and copyFile.  It also
  2873. adds text to fsspec coercions (darned handy).  If you are interested in
  2874. testing it, let me know.  I want some people who are capable of exercising
  2875. it well.
  2876.  
  2877. If you have any other suggestions for osaxen, let me know.
  2878. =========================================================================
  2879. Date:         Fri, 11 Mar 1994 13:41:24 -0600
  2880. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2881. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2882. From:         Vinod Kurup <vvkurup@STUDENTS.WISC.EDU>
  2883. Subject:      Re: Finder Events
  2884.  
  2885. >
  2886. >Experiment notes:
  2887. >1.  Finder 7.1 seems not to allow System event handlers to operate when it
  2888. >is the addressed application for a remote event (that wasn't a hugh
  2889. >surprise).  [Note that Finder 7.1 also does not have an 'aete', so from
  2890. >AppleScript one needs to create "generic" events.
  2891.  
  2892. I have a question about sending Finder 7.1 generic events.
  2893.  
  2894. I tried:
  2895.  
  2896. tell application "Finder" to <<event FNAEempt>>
  2897.                               ^        ^
  2898.                               these characters are opt-\ & opt-| respectively
  2899.  
  2900.        (I can't remember the capitalization of the event, but I got it by using
  2901.         John Baxter's trick of sending the event through "Finder Liaison" and
  2902.         then removing Finder Liaison from my disk)
  2903.  
  2904. I also tried:
  2905.  
  2906. <<event FNAEempt>>
  2907.  
  2908. Both of them just sat there pretending to do something, but not really
  2909. doing anything.
  2910.  
  2911. Can the Finder be scripted this way?
  2912.  
  2913. Thanks for any info,
  2914.  
  2915. Vinod
  2916.  
  2917. --
  2918. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  2919. L                                        L
  2920. L Vinod Kurup  vvkurup@students.wisc.edu L
  2921. L              vkurup@macc.wisc.edu      L
  2922. L                                        L
  2923. L University of Wisconsin Medical School L
  2924. L                                        L
  2925. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  2926. =========================================================================
  2927. Date:         Fri, 11 Mar 1994 13:53:37 -0600
  2928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2930. From:         Vinod Kurup <vvkurup@STUDENTS.WISC.EDU>
  2931. Subject:      Re: Finder Events
  2932.  
  2933. >I have a question about sending Finder 7.1 generic events.
  2934. >
  2935. >I tried:
  2936. >
  2937. >tell application "Finder" to <<event FNAEempt>>
  2938.  
  2939. Well, I just read Jon Pugh's message and note that to do an open selection
  2940. event to the finder, you have to do <<FNDRsope>> This made me realize that
  2941. 'FNAE' was probably an event that FinderLiaison understands and that the
  2942. Finder understands.
  2943.  
  2944. tell application "Finder" to <<event FNDRempt>>
  2945.  
  2946.         empties the trash perfectly!
  2947.  
  2948. Hope this helps somebody besides me.
  2949.  
  2950. Vinod
  2951.  
  2952.  
  2953. --
  2954. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  2955. L                                        L
  2956. L Vinod Kurup  vvkurup@students.wisc.edu L
  2957. L              vkurup@macc.wisc.edu      L
  2958. L                                        L
  2959. L University of Wisconsin Medical School L
  2960. L                                        L
  2961. LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
  2962. =========================================================================
  2963. Date:         Fri, 11 Mar 1994 12:49:05 -0800
  2964. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2965. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2966. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2967. Subject:      Re: Finder Events
  2968.  
  2969. At 13:41 3/11/94 -0600, Vinod Kurup wrote:
  2970. >I have a question about sending Finder 7.1 generic events.
  2971. >
  2972. >I tried:
  2973. >
  2974. >tell application "Finder" to <<event FNAEempt>>
  2975. >                              ^        ^
  2976. >                              these characters are opt-\ & opt-| respective=
  2977. ly
  2978. >
  2979. >       (I can't remember the capitalization of the event, but I got it by u=
  2980. sing
  2981. >        John Baxter's trick of sending the event through "Finder Liaison" a=
  2982. nd
  2983. >        then removing Finder Liaison from my disk)
  2984. >
  2985. >I also tried:
  2986. >
  2987. ><<event FNAEempt>>
  2988. >
  2989. >Both of them just sat there pretending to do something, but not really
  2990. >doing anything.
  2991. >
  2992. >Can the Finder be scripted this way?
  2993.  
  2994. Rather than event class FNAE, the Finder event class is FNDR (FNAE is
  2995. likely the signature for Finder Liaison).
  2996.  
  2997. This works...note that if Script Editor is in front, it takes Finder "a
  2998. while" to get around to redrawing the trash can icon after emptying the
  2999. trash.
  3000.  
  3001.  
  3002.     tell application "Finder" to =ABevent FNDRempt=BB
  3003.  
  3004. Does work (I just exercised the above...Finder 7.1.3 in this case, but the
  3005. =46inder Suite has worked since 7.0).
  3006.  
  3007.    --John
  3008.  
  3009.  
  3010. --
  3011. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3012.    "This is the network of our disconnect"
  3013. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  3014. =========================================================================
  3015. Date:         Fri, 11 Mar 1994 22:47:56 -0800
  3016. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3017. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3018. From:         Jon Pugh <jonpugh@NETCOM.COM>
  3019. Subject:      Re: MACSCRPT Digest - 10 Mar 1994 to 11 Mar 1994
  3020.  
  3021. A lot of people have been asking about scripting Eudora.  I wrote a script
  3022. which sorts my incoming mail folder into some mail folders and thought
  3023. people might benefit from the example.  This is simple and hardcoded, so
  3024. you'll have to tweak things to get them to work.  Once again, the word
  3025. wrapping is off, so you'll have to rewrap them.  I put comments at the end
  3026. of the lines which are broken.
  3027.  
  3028. I run this script from OSA Menu.
  3029.  
  3030. Note that Eudora 1.4.2 has a much improved dictionary and is available from
  3031. ftp.qualcomm.com as we type.  ;)
  3032.  
  3033. Jon
  3034.  
  3035.  
  3036. tell application "Eudora1.4.2"
  3037.   activate
  3038.   set n to number of message of mailbox "In" of mail folder ""
  3039.   repeat with i from n to 1 by -1
  3040.     try
  3041.       set itsTo to field "To" of message i of mailbox "In" of mail folder ""
  3042.     on error
  3043.       set itsTo to ""
  3044.     end try
  3045.     try
  3046.       set itsCC to field "cc" of message i of mailbox "In" of mail folder ""
  3047.     on error
  3048.       set itsCC to ""
  3049.     end try
  3050.     set itsTo to itsTo & return & itsCC
  3051.     if itsTo contains "applescript@" or itsTo contains "MACSCRPT@" then
  3052.       move message i of mailbox "In" of mail folder "" --
  3053.         InsertHere end of mailbox "AppleScript News" of mail folder ""
  3054.     else if itsTo contains "AfterDark@" then
  3055.       move message i of mailbox "In" of mail folder "" --
  3056.         InsertHere end of mailbox "AfterDark" of mail folder ""
  3057.     else if itsTo contains "group@" or itsTo contains "brain@" then
  3058.       move message i of mailbox "In" of mail folder "" --
  3059.         InsertHere end of mailbox "Brains" of mail folder ""
  3060.     else if itsTo contains "jonpugh" or itsTo contains "jpugh@" --
  3061.          or itsTo contains "Jon Pugh" then
  3062.       move message i of mailbox "In" of mail folder "" --
  3063.         InsertHere end of mailbox "Saved Mail" of mail folder ""
  3064.     else
  3065.       --set itsFrom to Sender of Message i of Mailbox "In" of Mail Folder ""
  3066.       --display dialog "TO: " & itsTo & return & "FROM: " & itsFrom & space & i
  3067.     end if
  3068.   end repeat
  3069. end tell
  3070. =========================================================================
  3071. Date:         Sat, 12 Mar 1994 15:41:46 -0600
  3072. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3073. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3074. From:         Richard Millward <rsm@MCS.COM>
  3075. Subject:      Frontmost
  3076.  
  3077. Can anybody give me an overview of how FrontMost is implemented? I'm
  3078. frustrated by AppleScript's complete lack of UI and, after waiting far too
  3079. long for my HyperCard 2.2 upgrade to arrive, I realized after reviewing it
  3080. that it's not the solution I want either. Can FrontMost objects (especially
  3081. windows or dialogs) be called from AppleScript without writing an entire
  3082. FrontMost application? For example, can I create a dialog box in FrontMost
  3083. with as many checkboxes as I have Eudora mailboxes in order to specify at
  3084. runtime which I mailboxes I want sorted? TIA.
  3085.  
  3086. Richard Millward
  3087. MCSNet/Chicago
  3088. rsm@mcs.com
  3089. =========================================================================
  3090. Date:         Sat, 12 Mar 1994 15:47:23 -0600
  3091. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3092. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3093. From:         Richard Millward <rsm@MCS.COM>
  3094. Subject:      Re: New member - questions about scripting Eudora
  3095.  
  3096. >First off, hello -- I just joined the list.  I don't seem to be getting too
  3097. >many messages (exactly one so far), so hopefully I am actually getting the
  3098. >full message feed....
  3099. >
  3100. >I've just started using AppleScript.  It's seems fantastic and I've had
  3101. >some success scripting for StuffitDeluxe, but I've run into some problems
  3102. >trying to figure out how to script Eudora 1.4.2.  According to Eudora's
  3103. >dictionary, the "get" command "Works for message & mailbox properties,
  3104. >fields, and whole messages."  It also says that if you omit the reference,
  3105. >it defaults to the "current" message.
  3106. >
  3107. >Leaving off the reference always returns an error from Eudora.  In
  3108. >particular I'm trying to get the "isOutgoing" property for the "current"
  3109. >message, which I presume means the topmost open message window (correct)?
  3110. >I'm using the following test script:
  3111. >
  3112. >    tell application "Eudora1.4.2"
  3113. >        copy (get IsOutgoing) to openMessageToSend
  3114. >
  3115. >        if openMessageToSend then
  3116. >            display dialog "Open message to send"
  3117. >        else
  3118. >            display dialog "No open message to send"
  3119. >        end if
  3120. >
  3121. >    end tell
  3122. >
  3123. >
  3124. >Running this returns an error on "IsOutgoing" saying:
  3125. >
  3126. >    Eudora1.4.2 got an error: Can't get IsOutgoing.
  3127. >
  3128. >Note that it works fine if I use:
  3129. >
  3130. >    copy (get IsOutgoing of message 1) to openMessageToSend
  3131. >
  3132. >However, I really have a more fundamental question, because even if I could
  3133. >leave out the reference, I suspect this wouldn't do what I want.  The
  3134. >problem is that if I reference message 1, but there is no message 1, then
  3135. >the script stops with an error.  Is there any way that I can find out IF
  3136. >there are message windows open (or better, get a list of open windows)?
  3137. >Sorry if the answer to this is extremely basic -- in many ways I find
  3138. >AppleScript intuitive, but in others I'm finding it pretty confusing.
  3139.  
  3140. I'm new to AppleScripting, too, but the one thing I finally figured out
  3141. about Eudora is that either it is unable to fill in the "default path" to
  3142. objects or I don't know how to set it up in advance so it "knows" about it.
  3143. The following:
  3144.  
  3145. tell application "Eudora 1.4.2"
  3146.         set thePrompt to ""
  3147.         set toGo to the outGoing of message 1 of mailbox "Out" of mail folder ""
  3148.         if ( toGo )
  3149.                 set thePrompt to "There are messages to be sent"
  3150.         else
  3151.                 set thePrompt to "There are no messages"
  3152.         end
  3153.         display dialog thePrompt
  3154. end tell
  3155.  
  3156. does what you'd expect it to. The difference is, of course, that there's a
  3157. _full_ descriptor of the message you are trying to get at. I don't know how
  3158. to "abbreviate" that so you don't have to type it all the time, but
  3159. somebody else on the list surely will. Hope this helps 'til someone who
  3160. knows more about it can respond.
  3161.  
  3162. Richard Millward
  3163. MCSNet/Chicago
  3164. rsm@mcs.com
  3165. =========================================================================
  3166. Date:         Sat, 12 Mar 1994 18:37:09 -0800
  3167. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3168. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3169. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  3170. Subject:      Butler DAL server
  3171.  
  3172. What is the best way to access a DAL database from AppleScript? Suggestions?
  3173. Kee Nethery
  3174.  
  3175. _________________________________________________________________
  3176. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  3177. =========================================================================
  3178. Date:         Sun, 13 Mar 1994 02:46:15 LCL
  3179. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3180. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3181. From:         Rick Zeman <rick.zeman@HIS.COM>
  3182. Organization: Heller Info Services (info@his.com) Near DC
  3183. Subject:      Stuffit SuperExpander
  3184.  
  3185. Anyone tried to use Aladdin's SuperExpander with AS 1.1 [and Deluxe 3.07]?  I
  3186. recompiled it (with _no_ changes at all) for 1.1 and it now barfs with the
  3187. alert:
  3188. "The 'Tran' verb requires a text parameter with a key of 'name'".  The
  3189. 'offending' script segment is:
  3190.  
  3191. Translate match name transName command commandString --the execution
  3192. parameters
  3193.  
  3194. which executes fine under AS 1.0 (until it crashes at the very end of the
  3195. script. I've found that a lot of scripts compiled under 1.0 need to be
  3196. recompiled under 1.1.  Hence, my conundrum).
  3197.  
  3198. Huh?  What's changed?
  3199.  
  3200. ___________________________________________________________________________
  3201. Rick Zeman                                "Wer nie sein Brot mit Tranen ass
  3202. rzeman@his.com                              Wer nie die kummervollen Nachte
  3203. Fidonet: 1:109/70.943                          Auf seinem Bette weinend sas
  3204.                              Der kennt euch nicht, ihr himmlishcen Machte."
  3205.                                            -- Goethe, "Wilhelm Meister"
  3206. =========================================================================
  3207. Date:         Sun, 13 Mar 1994 08:29:52 -0700
  3208. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3209. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3210. From:         Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
  3211. Subject:      Re: new items on gaea
  3212.  
  3213. In message <199403130542.WAA27380@fsa.cpsc.ucalgary.ca> Macintosh Scripting
  3214. Systems writes:
  3215. > I've uploaded some new items to gaea that some of you might be interested in.
  3216. >
  3217. >
  3218. > applescript/osaxen/MacPPPControl.sit.hqx
  3219. > applescript/osaxen/MountVolosax.sit.hqx
  3220. > applescript/docs/FMProChanges.txt
  3221. > applescript/docs/digests/feb94
  3222. > applescript/addons/FW2.0.3.sit.hqx
  3223. > applescript/scripts/PARSE.sit.hqx
  3224. > applescript/scripts/CanvasDemoScripts.sit.hqx
  3225. > applescript/scripts/GraphSearch.sit.hqx
  3226. > applescript/scripts/LEVEL6ScriptsVol1.sit.hqx
  3227.  
  3228. Fred, applescript/osaxen/MountVolosax.sit.hqx
  3229. does not seem to have made it, b.
  3230.  
  3231.  
  3232. Brian Gaines              Knowledge Science Institute, University of Calgary
  3233. gaines@cpsc.ucalgary.ca   Calgary, Alberta, Canada T2N 1N4
  3234. =========================================================================
  3235. Date:         Sun, 13 Mar 1994 13:43:33 -0500
  3236. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3237. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3238. From:         David Myers <dcmyers@ASTRO.UMD.EDU>
  3239. Subject:      "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
  3240.  
  3241. Does anyone know if the new, scriptable Finder slated for System 7.5
  3242. will also support Frontier's menu sharing protocol?  I believe
  3243. that PhotoFlash from Apple did implement menu sharing, so I hope
  3244. this indicates some level of corporate commitment for UserLand's
  3245. product.
  3246.  
  3247. -David.
  3248. =========================================================================
  3249. Date:         Sun, 13 Mar 1994 13:48:29 -0500
  3250. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3251. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3252. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3253. Subject:      Re: New member - questions about scripting Eudora
  3254.  
  3255. Ahh, that helps quite a bit, as does John Pugh's post.  Thanks.
  3256.  
  3257. However, one other question:  What is the correct formatting of a "make"
  3258. command in Eudora.  What parameters are required?  Can somebody give me an
  3259. example?
  3260.  
  3261. Also, it appears that if you say "message 1" (without a mailbox or folder
  3262. reference), that this defaults to the topmost open message.  Is there any
  3263. way to reference other open messages?  I tried using message 2, 3, etc. and
  3264. it always refers to the top most open message anyway.
  3265.  
  3266. Steve
  3267.  
  3268. ---------------------
  3269.  jonke@gsfc.nasa.gov
  3270. ---------------------
  3271. =========================================================================
  3272. Date:         Sun, 13 Mar 1994 13:49:21 -0500
  3273. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3274. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3275. From:         David Myers <dcmyers@ASTRO.UMD.EDU>
  3276. Subject:      Native PPC versions of scripting tools?
  3277.  
  3278. Has anybody seen an official schedule (or, for that matter, heard any
  3279. good rumors) for the release of native PPC versions of HyperCard
  3280. and UserLand Frontier?
  3281.  
  3282. -David.
  3283. =========================================================================
  3284. Date:         Sun, 13 Mar 1994 14:52:08 -0800
  3285. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3286. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3287. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  3288. Subject:      Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
  3289.  
  3290. >Does anyone know if the new, scriptable Finder slated for System 7.5
  3291. >will also support Frontier's menu sharing protocol?
  3292. >
  3293.         Unfortunately, it will not support Menu Sharing.  There was a big
  3294. push to get them to do so, but for a number of (IMHO silly) reasons, it
  3295. doesn't.  This means that FinderMenus is still at least somewhat useful.
  3296.  
  3297.  
  3298. >I believe
  3299. >that PhotoFlash from Apple did implement menu sharing, so I hope
  3300. >this indicates some level of corporate commitment for UserLand's
  3301. >product.
  3302. >
  3303.         That was because Apple bought PhotoFlash from a Userland savvy
  3304. company.
  3305.  
  3306.         However, there is a group pushing Apple to support MenuSharing in
  3307. more products!!
  3308.  
  3309. LDR
  3310.  
  3311. -----------------------------------------------------------------------------
  3312. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  3313. Director of Advanced Technology         AppleLink:      MACgician
  3314. Aladdin Systems, Inc.                   GEnie:          MACgician
  3315. =========================================================================
  3316. Date:         Sun, 13 Mar 1994 18:19:10 -0500
  3317. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3318. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3319. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3320. Subject:      Re: Frontmost
  3321.  
  3322. >Can FrontMost objects (especially
  3323. >windows or dialogs) be called from AppleScript without writing an entire
  3324. >FrontMost application? For example, can I create a dialog box in FrontMost
  3325. >with as many checkboxes as I have Eudora mailboxes in order to specify at
  3326. >runtime which I mailboxes I want sorted? TIA.
  3327.  
  3328. Is FrontMost freeware, shareware, commercial?  Is it it available yet?
  3329. Where?  I want it!  :)
  3330.  
  3331. Steve
  3332.  
  3333. ---------------------
  3334.  jonke@gsfc.nasa.gov
  3335. ---------------------
  3336. =========================================================================
  3337. Date:         Sun, 13 Mar 1994 15:30:34 -0800
  3338. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3339. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3340. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  3341. Subject:      Re: Frontmost
  3342.  
  3343. >>Can FrontMost objects (especially
  3344. >>windows or dialogs) be called from AppleScript without writing an entire
  3345. >>FrontMost application? For example, can I create a dialog box in FrontMost
  3346. >>with as many checkboxes as I have Eudora mailboxes in order to specify at
  3347. >>runtime which I mailboxes I want sorted? TIA.
  3348. >
  3349. >Is FrontMost freeware, shareware, commercial?  Is it it available yet?
  3350. >Where?  I want it!  :)
  3351. >
  3352. FrontMost comes with AppleScript 1.1. I ordered the upgrade specifically to
  3353. get it.
  3354.  
  3355. Kee Nethery
  3356.  
  3357. _________________________________________________________________
  3358. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  3359. =========================================================================
  3360. Date:         Sun, 13 Mar 1994 21:20:11 -0600
  3361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3363. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  3364. Subject:      Re: ClarisWorks support AppleScript?
  3365.  
  3366. ClarisWorks does have an AppleScript dictionary that can be opened
  3367. in the Script Editor. It includes field and cell objects and I tried
  3368. playing with it a bit. I succeeded in freezing up my Mac several times.
  3369. I understand that Claris is aware that there are problems and a new
  3370. version will have better AS support. I don't know if that means version
  3371. 2.1 (just released) or not.
  3372.  
  3373. The sidegrade offer (Resolve owners can purchase ClarisWorks for $29) was
  3374. mentioned in last week's Tidbits. I would imagine you could call
  3375. Claris to find out more.
  3376. =========================================================================
  3377. Date:         Mon, 14 Mar 1994 11:57:33 +0000
  3378. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3379. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3380. From:         Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
  3381. Subject:      Eudora/Frontier Listsever
  3382.  
  3383. I have plans to write a sort of ListServer/InfoBot for my Mac, using a
  3384. combination of Eudora 2.x and Frontier 3.x.
  3385.  
  3386. It seems to me that most of the work involved will be writing the
  3387. interpreter that parses commands to the server.
  3388.  
  3389. Is anybody out there involved in a similar project?
  3390.  
  3391. I have so little time for this sort of activity, that I would be interested
  3392. in collaberation with other people, or augmenting existing code.
  3393.  
  3394.  
  3395. Thanks
  3396.  
  3397.  
  3398. Jeremy Quinn
  3399.  
  3400.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  3401.              Jeremy Quinn             :              Internet:
  3402.             3D/Interactive            :       jermq@media.demon.co.uk
  3403.  
  3404.               Designer &              :               Phone:
  3405.         Green Design Consultant       :           +44 71 737 6831
  3406.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  3407.       Member of O2 Global Network     :     PGP Key available on request
  3408. =========================================================================
  3409. Date:         Mon, 14 Mar 1994 09:02:23 -0500
  3410. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3411. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3412. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  3413. Subject:      Re: Eudora/Frontier Listsever
  3414.  
  3415. >I have plans to write a sort of ListServer/InfoBot for my Mac, using a
  3416. >combination of Eudora 2.x and Frontier 3.x.
  3417. >
  3418. >It seems to me that most of the work involved will be writing the
  3419. >interpreter that parses commands to the server.
  3420. >
  3421. >Is anybody out there involved in a similar project?
  3422. >
  3423. >I have so little time for this sort of activity, that I would be interested
  3424. >in collaberation with other people, or augmenting existing code.
  3425. >
  3426. >
  3427. Glen Anderson "glenn.anderson@stonebow.otago.ac.nz" is developing a POP3
  3428. Mac mail server called MailShare which has a primitive listServ function.
  3429. You point it to a text file which is a return delimited list of e-mail
  3430. addresses.  As the software develops further I imagine that automatic
  3431. sub/unsub will be incorporated.
  3432. =========================================================================
  3433. Date:         Mon, 14 Mar 1994 06:56:29 -0800
  3434. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3435. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3436. From:         Steve Holden <sholden@COD.NOSC.MIL>
  3437. Subject:      Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
  3438.  
  3439. >        However, there is a group pushing Apple to support MenuSharing in
  3440. >more products!!
  3441.  
  3442. Anyway we can add to this push. Contact name and address?!? I don't
  3443. mind writing a letter or two.
  3444.  
  3445. My whole project is moving towards using Scripting in every application.
  3446. If we can't do MenuSharing in the Finder, we will be at a disadvantage.
  3447.  
  3448. Later,
  3449.  
  3450. Steve
  3451.  
  3452.  
  3453. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3454.                      Steven D. Holden
  3455.           Macintosh System/Applications Engineer
  3456.                SAIC -> NRaD -> Project ICER
  3457.      Email: sholden@cod.nosc.mil, Phone: (619) 553-6750
  3458. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3459.     Disclaimer: Opinions expressed are my own and do not
  3460. necessarily reflect those of my employer or the government.
  3461. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3462. =========================================================================
  3463. Date:         Mon, 14 Mar 1994 15:12:15 -0800
  3464. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3465. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3466. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3467. Subject:      Re: Native PPC versions of scripting tools?
  3468.  
  3469. At 13:49 3/13/94 -0500, David Myers wrote:
  3470. >Has anybody seen an official schedule (or, for that matter, heard any
  3471. >good rumors) for the release of native PPC versions of HyperCard
  3472. >and UserLand Frontier?
  3473.  
  3474. I didn't answer then, because there wasn't anything I could say.  I just
  3475. copied the following out of the UserLand forum on CompuServe (it was posted
  3476. by Doug Baron of UserLand):
  3477.  
  3478.  
  3479. --------------------------
  3480. Frontier goes Native!
  3481. ---------------------
  3482.  
  3483. Today, Apple Computer Inc. announced a new line of PowerPC-based Macintoshes.
  3484. UserLand Software is pleased to announce that a native PowerPC version
  3485. UserLand Frontier is well under way, and that a demo version is now
  3486. available for downloading.
  3487.  
  3488. Currently in beta testing, the native version boasts 2-X to 8-X performance
  3489. improvements over versions running in emulation or on 680x0-based
  3490. Macintoshes. Calculation-intensive tasks benefit the most from native
  3491. processing.
  3492.  
  3493. The demo package does not use the Thread Manager, so background- and
  3494. multi-processing capabilities are not enabled, and the QuickScript window
  3495. is not functional. The demo expires on May 1, 1994.
  3496.  
  3497. In Library 8, ULFPPC.SIT. Check it out!
  3498.  
  3499. UserLand Software
  3500. March 14, 1994
  3501. -------------------------
  3502.  
  3503. --John
  3504.  
  3505. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  3506.   UserLand Software support
  3507. =========================================================================
  3508. Date:         Mon, 14 Mar 1994 18:29:00 GMT
  3509. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3510. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3511. From:         "Software Designs Unltd,Lee Buck,
  3512.               VCA" <LEE.BUCK@APPLELINK.APPLE.COM>
  3513. Subject:      SIGNOFF SDU
  3514.  
  3515. Please sign us off: SDU and LEE.BUCK
  3516. ----------------------------------------------------------------------------
  3517. MACSCRPT@DARTCMS1.DARTMOUTH.EDU
  3518. =========================================================================
  3519. Date:         Mon, 14 Mar 1994 13:35:48 U
  3520. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3521. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3522. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  3523. Subject:      Re- Re- Remote Launching
  3524.  
  3525.                       Re: Re: Remote Launching
  3526. >The 7.x Finders allow remote launching. All you need is the exact location of
  3527. the program you wish to launch..
  3528.  
  3529. Hmm. I picked up a copy of Dan Ranson's  Finder Scripting Toolkit and tried
  3530. what I would have expected was an even simpler script than the one you
  3531. mentioned (RemoteOpenObjectsWithZone).
  3532.  
  3533. Here it is:
  3534. on OpenObjects(alias "Mark's HD:Frontier 3.0 alias:", {alias "Mark's
  3535. HD:Frontier 3.0:Frontier Runtime(tm) alias"})
  3536.         tell application "Finder" to open cont items objs
  3537. end OpenObjects
  3538.  
  3539. (You can ignore the spacing/line wraps.)
  3540. The apps and aliases and paths are all local. I've made an alias to the
  3541. Frontier 3.0 folder and placed it at the root level of my disk, Mark's HD. I've
  3542. also made an alias to the app, Frontier Runtime, and put it into the container
  3543. specified in the first param, Mark's HD:Frontier 3.0:. The Script Editor
  3544. responds by saying it can't find the folder alias "Mark's HD:Frontier 3.0
  3545. alias:" I've also tried putting the alias within the container it points to.
  3546. Am I understanding Ranson's description of what an alias should be:
  3547. "       o alias : an alias to a Finder object, for instance "alias
  3548. "Disk:folder:file"".
  3549.         It cannot be a pathname or some other way of refering to the object.
  3550.  
  3551. Is there an osax that I'm supposed to have loaded in order to pull this script
  3552. off? I've got the fwin osax loaded just for paranoia's sake. Does anyone else
  3553. get this error if you run this script? Am I crazy, losing my mind?
  3554.  
  3555. Mark Stewart
  3556. BIAD-Research Imaging Center
  3557. UTHSCA
  3558. =========================================================================
  3559. Date:         Mon, 14 Mar 1994 11:43:13 -0800
  3560. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3561. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3562. From:         David Lewis <lewis@NETCOM.COM>
  3563. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  3564.  
  3565. >>Ok, I've gotten a good copy of MacPPP Control. I've installed it into
  3566. >>Frontier using the Load OSAX droplet. The script fragment
  3567. >>
  3568. >>        if PPPOpened () {
  3569. >>            closePPP ()
  3570. >>            }
  3571. >>
  3572. >>works fine if executed from Frontier (placed into a script which is
  3573. >>executed from the Quick Script window). If called from FinderMenu, however,
  3574. >>it will hang the machine if the closePPP () clause is executed. I've tried
  3575. >>various combinations of clock.waitSeconds inserted before and after the
  3576. >>call, and I've also tried Frontier.bringToFront before the fragment is
  3577. >>executed. Nothing so far helps. Any assistance would be appreciated.
  3578. >>Thanks.
  3579. >
  3580. >Humm, I'm no sure what to say.  I use MacPPP Control in a series of
  3581. >AppleScript script applications which I execute from MenuChoice.  I also
  3582. >have scripts running from my Scheduler application useing MacPPP Control
  3583. >with no trouble.
  3584. >
  3585. >I don't have Frontier on my system so I can't test with it.  I'm willing to
  3586. >supply the source for the MacPPP Control OSAX if thet will help you address
  3587. >the problem.
  3588. >
  3589. >-Mark
  3590.  
  3591. Hi,
  3592.  
  3593. Perhaps I was a little too flip in my previous response. I would like to
  3594. examine the source if it's ok with you. Thanks.
  3595.  
  3596.         David
  3597.  
  3598. ------------------------------------------------------------------------
  3599. David Lewis               lewis@netcom.com                (408) 439-2374
  3600. =========================================================================
  3601. Date:         Mon, 14 Mar 1994 16:42:02 -0500
  3602. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3603. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3604. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3605. Subject:      AppleScript and System 7 Pro
  3606.  
  3607. A colleague of mine who had AppleScript 1.0 and System 7.1 recently
  3608. upgraded to System 7 Pro.  I also have System 7 Pro and installed
  3609. AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro.  I can not find
  3610. the extension "Apple Events Manager" anywhere on my hard disk, but it's
  3611. icon still appears during startup.  Is the Apple Event Manager incorporated
  3612. as part of the system in System 7 Pro?  Does someone with System 7.1 NEED
  3613. the Apple Event Manager extension, or just the AppleScript extension?
  3614.  
  3615. Steve
  3616.  
  3617. ---------------------
  3618.  jonke@gsfc.nasa.gov
  3619. ---------------------
  3620. =========================================================================
  3621. Date:         Mon, 14 Mar 1994 18:28:44 +0000
  3622. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3623. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3624. From:         Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
  3625. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  3626.  
  3627. >Ok, I've gotten a good copy of MacPPP Control. I've installed it into
  3628. >Frontier using the Load OSAX droplet.................
  3629.  
  3630.  
  3631.  
  3632. Where did you get the "Load OSAX droplet" from?
  3633.  
  3634. Thanks
  3635.  
  3636.  
  3637.  
  3638. Jeremy Quinn
  3639.  
  3640.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  3641.              Jeremy Quinn             :              Internet:
  3642.             3D/Interactive            :       jermq@media.demon.co.uk
  3643.  
  3644.               Designer &              :               Phone:
  3645.         Green Design Consultant       :           +44 71 737 6831
  3646.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  3647.       Member of O2 Global Network     :     PGP Key available on request
  3648. =========================================================================
  3649. Date:         Mon, 14 Mar 1994 17:02:18 -0800
  3650. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3651. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3652. From:         argon lazer battlegrid <ub141@FREENET.VICTORIA.BC.CA>
  3653. Subject:      Scripting Stuffit
  3654.  
  3655. I can now get my script to Unstuff items, but no
  3656. luck so far with unbinhexing them. I pretty much
  3657. cut and pasted the translater code right from the
  3658. sutffit examples, just changing a couple
  3659. variable names but I don't think I changed the functionality
  3660. of it at all.
  3661.  
  3662. When I drop a .hqx file onto 'Super Expander', where I
  3663. grabbed the code, it decodes fine, but in my script
  3664. it seems to completely ignore the translator.Hmmmmm.
  3665.  
  3666. =46or those of you who don't have a copy to look at
  3667.  
  3668. on decode(transName, fileName)
  3669.         set commandString to "decode \"" & fileName & "\""
  3670.         tell application "StuffIt Lite=81"
  3671.                 activate
  3672.                 Translate name transName command commandString
  3673.         end tell
  3674. end decode
  3675.  
  3676. where I have passed transName as "BinHex4".
  3677.  
  3678. Needless to say, I find AppleScript quite frustrating.
  3679. I don't know if it is the docs (or lack thereof) or
  3680. just that I am used to a little more structure
  3681. when programming. (I am doing a comp. sci. degree)
  3682. Regardless, I am glad this list is here to help
  3683. me out. Thanks very much.
  3684.  
  3685. Did I mention that I have AS 1.0 on a c610/sys7.1?
  3686.  
  3687. Chris Fraser     ub141@freenet.victoria.bc.ca     cfraser@island.amtsgi.bc.c=
  3688. a
  3689.                Finger me here for my PGP public key--^
  3690. "Note: Some very inexpensive pedals are not serviceable. Other pedals are
  3691. theoretically possible to service, but seem designed to discourage it. When
  3692. these need work, we suggest you work them into a garbage can, and get a new
  3693. pair of pedals." Bridgestone Owner's Manual, Bridgestone Cycle USA.
  3694. =========================================================================
  3695. Date:         Mon, 14 Mar 1994 21:43:34 -0800
  3696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3698. From:         O'le Biscut Barrel <schuettm@UCS.ORST.EDU>
  3699. Subject:      Re: new items on gaea
  3700. In-Reply-To:  (null)
  3701.  
  3702. What is the telnet address of gaea? Thanks.
  3703.  
  3704. ------------------------------------------------------------
  3705. Marc Schuette                    Biology/Computer Science
  3706. email: schuettm@ucs.orst.edu     Oregon State University
  3707.  
  3708. -GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-
  3709. ------------------------------------------------------------
  3710. =========================================================================
  3711. Date:         Tue, 15 Mar 1994 03:34:19 -0600
  3712. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3713. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3714. From:         "Y. Doug Uno" <uno@CS.UIUC.EDU>
  3715. Subject:      AppleScript, Mail folder of Eudora
  3716.  
  3717. Could anybody tell me what is the problem in the following applescript?
  3718. I cannot handle Mail folders.  The script is as follows.
  3719.  
  3720. display dialog "Mail Folder Name? if you have" default answer ""
  3721. -- I type folder name "F1" which exists.
  3722. set MFName to (text returned of result)
  3723. display dialog "MailBox Name?" default answer "In"
  3724. -- I type Mailbox name "M1" which exists in "F1".
  3725. set MBoxName to (text returned of result)
  3726. tell application "Eudora2.0.1"
  3727.         set N to number of Message of Mailbox MBoxName of Mail Folder MFName
  3728. end tell
  3729.  
  3730. It causes error said "Eudora2.0.1 got an error.  Can't get Message of
  3731. Mailbox "M1" of Mail folder "F1".  If I type nothing for Mail folder and
  3732. type "Out" or whatever the Mailbox exist, it works.  The problem is hadling
  3733. mail folder.
  3734.  
  3735. Also, I would like to change this script using "choose file" instead of
  3736. "display dialog" but I could not figure out to convert reference to string.
  3737. How can I solve this?
  3738.  
  3739. Thanks in advance.
  3740.  
  3741. -----------------------------------------
  3742. Y. Doug Uno       e-mail: uno@cs.uiuc.edu
  3743. University of Illinois
  3744. 1304 W. Springfield Ave.  Room 2413
  3745. Urbana, IL 61801
  3746. =========================================================================
  3747. Date:         Tue, 15 Mar 1994 10:16:00 +0000
  3748. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3749. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3750. Comments:     Warning -- original Sender: tag was ross@BNR.CA
  3751. From:         ab026@FREENET.CARLETON.CA
  3752. Subject:      Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
  3753.  
  3754. David Myers <dcmyers@ASTRO.UMD.EDU> writes:
  3755.  
  3756. >Does anyone know if the new, scriptable Finder slated for System 7.5
  3757. >will also support Frontier's menu sharing protocol?  I believe
  3758. >that PhotoFlash from Apple did implement menu sharing, so I hope
  3759. >this indicates some level of corporate commitment for UserLand's
  3760. >product.
  3761.  
  3762. For a different approach to menu sharing, one that doesn't require
  3763. explicit support by target applications, check out my Menu Events system
  3764. extension (server) and Menu Grabber application (client).
  3765.  
  3766. Briefly, Menu Events adds a system event handler which supports a suite
  3767. of three events:
  3768.    Query Menu List
  3769.    Query Menu
  3770.    Select Menu Item
  3771. The Select Menu Item event causes the recipient to act as though the
  3772. given menu item was selected by the user.  All that is required of the
  3773. target application is that it be high-level-event-aware (i.e., that it
  3774. support the Required suite) and that it not be programmed in such a way
  3775. as to defeat system event handlers (this means that it *doesn't* work
  3776. with Finder 7.1 or earlier, ResEdit 2.1.1, and some Microsoft apps - but
  3777. it *SHOULD* work with Finder 7.5, which Frontier may not).
  3778.  
  3779. Menu Grabber exemplifies what programmers and scripters can accomplish
  3780. with the Menu event suite.  It lets you pick an application from any Mac
  3781. on your AppleTalk network, then proceeds to grab a copy of its menu bar,
  3782. so that you can control it remotely through its menu commands.
  3783.  
  3784. While there are some limitations, these programs may help you.  They are
  3785. in the final stages of beta testing, but I invite anyone on the MACSCRPT
  3786. mailing list to pick up a copy for evaluation before release:
  3787.  
  3788. ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Menu_Events_1.0.7.sit.Hqx
  3789. ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Menu_Grabber_1.0.6.sit.Hqx
  3790.  
  3791. These programs are fully documented, but the documents are not in plain
  3792. text, so while you're there, better pick up one more thing:
  3793.  
  3794. ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Help_on_Wheels_1.0.4.sit.Hqx
  3795.  
  3796. Have fun!
  3797.  
  3798. Ross Brown - AWOL Software Productions - Ottawa, Ontario, Canada
  3799. publisher of AWOL Utilities - "the best deal in freeware!"
  3800. ab026@freenet.carleton.ca
  3801. =========================================================================
  3802. Date:         Wed, 16 Mar 1994 11:09:01 -0500
  3803. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3804. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3805. From:         David Myers <dcmyers@ASTRO.UMD.EDU>
  3806. Subject:      Early observations on PowerPC compatibility with scripting tools
  3807.  
  3808. Okay...After one evening spent with a brand new PowerMac 6100,
  3809. I'd like to report on my initial observations on a couple
  3810. of key applications.
  3811.  
  3812.  
  3813. UserLand Frontier:
  3814.  
  3815. Works well; works reasonably fast (but hey, I just traded up from
  3816. an SE/30, so how would I know?).  FinderMenus 3.0, however,
  3817. appears to crash in a very nasty way.  This is a big disappointment,
  3818. but with J. Baxter's recent announcement of an upcoming native
  3819. Frontier port, I am a little consoled.
  3820.  
  3821.  
  3822. AppleScript:
  3823.  
  3824. The machine comes with Applescript 1.1 and something I believe called
  3825. "RISC Plug-In" (I am at work as I write this, so I can't check on the
  3826. full name).  What exactly this "RISC Plug-In" does I can't say for
  3827. sure.  Anybody know?  I prefer Frontier, so I didn't do too much
  3828. playing around with AS.
  3829.  
  3830.  
  3831. SITcomm:
  3832.  
  3833. Another disappointment: SITcomm crashed when I started a ZMODEM transfer
  3834. using the supplied ZMODEM tool. Any word from our Aladdin experts here?
  3835.  
  3836.  
  3837. -David.
  3838. =========================================================================
  3839. Date:         Wed, 16 Mar 1994 14:29:25 -0500
  3840. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3841. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3842. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  3843. Subject:      FileMaker Pro examples
  3844.  
  3845. Anyone have any good example scripts using FileMaker?
  3846.  
  3847. My main question is - how do you (or can you) specify a "whose" clause in a
  3848. get data statement. How do you find record(s) that contain a certain value in
  3849. one of the fields?
  3850.  
  3851. Thanks,
  3852. Jay
  3853. +---------------------------------------+----------------------------------+
  3854. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  3855. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  3856. |   | ----------+ Development Training  |                  martin@aidt.edu |
  3857. |   +---------------------------------- | (But what do they know?)         |
  3858. +---------------------------------------+----------------------------------+
  3859. =========================================================================
  3860. Date:         Wed, 16 Mar 1994 16:19:45 -0500
  3861. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3862. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3863. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  3864. Subject:      Re: FileMaker Pro examples
  3865. In-Reply-To:  <no.id> from "Jay Martin" at Mar 16, 94 02:29:25 pm
  3866.  
  3867. --Jay Martin wrote:
  3868. >
  3869. >Anyone have any good example scripts using FileMaker?
  3870.  
  3871.     Not really. All of the FM Pro scripting I've done has been little
  3872. one shot stuff. I just haven't gotten around to doing anything worth
  3873. keeping yet.
  3874.  
  3875. >My main question is - how do you (or can you) specify a "whose" clause in a
  3876. >get data statement. How do you find record(s) that contain a certain value in
  3877. >one of the fields?
  3878.  
  3879.     tell app "FileMaker Pro"
  3880.         show every record where cell "fieldname" contains "value"
  3881.     end tell
  3882.  
  3883.     There are all kinds of variations on this, you can also do
  3884. combinations, and use things like "does not contain". This has to be one
  3885. of the coolest things about the Apple Event Object Model, IMO.
  3886.  
  3887. -Hades
  3888. =========================================================================
  3889. Date:         Wed, 16 Mar 1994 16:41:05 -0500
  3890. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3891. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3892. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3893. Subject:      Re: AppleScript, Mail folder of Eudora
  3894.  
  3895. >It causes error said "Eudora2.0.1 got an error.  Can't get Message of
  3896. >Mailbox "M1" of Mail folder "F1".  If I type nothing for Mail folder and
  3897. >type "Out" or whatever the Mailbox exist, it works.
  3898.  
  3899. This is the same problem I ran into until I realized that any mail folders
  3900. you create are created in mail folder "" (empty string), the top most mail
  3901. folder.  So the correct reference would be:
  3902.  
  3903.   ...Mailbox MBoxName of Mail Folder MFName of Mail Folder ""
  3904.  
  3905. Steve
  3906.  
  3907. ---------------------
  3908.  jonke@gsfc.nasa.gov
  3909. ---------------------
  3910. =========================================================================
  3911. Date:         Wed, 16 Mar 1994 16:01:55 -0500
  3912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3914. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  3915. Subject:      Re> Re: new items on gaea
  3916.  
  3917. The address is gaea.kgs.ukans.edu.
  3918.  
  3919. Jay
  3920.  
  3921.  ------ From: Macintosh Scripting Systems, Mar 16, 1994 ------
  3922.  
  3923. What is the telnet address of gaea? Thanks.
  3924. =========================================================================
  3925. Date:         Wed, 16 Mar 1994 16:01:24 -0600
  3926. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3927. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3928. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3929. Subject:      Re: new items on gaea
  3930. In-Reply-To:  Your message of "Mon,
  3931.               14 Mar 94 21:43:34 PST." <9403162157.AA03141@lks.lks.csi.com>
  3932.  
  3933. > What is the telnet address of gaea? Thanks.
  3934.  
  3935. gaea.kgs.ukans.edu or 129.237.140.40.
  3936.  
  3937. pf
  3938.  
  3939.  
  3940. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3941. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  3942.  
  3943. "Bad spellers of the world, untie!"
  3944.                                         --Graffito
  3945. =========================================================================
  3946. Date:         Wed, 16 Mar 1994 17:25:34 -0500
  3947. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3948. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3949. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3950. Subject:      Scriptable news reader?
  3951.  
  3952. Does anyone know if there is a scriptable news reader?  I'd like to write a
  3953. script for Eudora (to put in the OSA Menu) to open refeferenced messages
  3954. from email messages in Eudora....
  3955.  
  3956. Steve
  3957.  
  3958. ---------------------
  3959.  jonke@gsfc.nasa.gov
  3960. ---------------------
  3961. =========================================================================
  3962. Date:         Wed, 16 Mar 1994 17:35:17 -0500
  3963. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3964. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3965. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  3966. Subject:      Is AppleScript free?
  3967.  
  3968. One thing I've been wonder is, is AppleScript free?  Can I send a copy of
  3969. the AppleScript extension and associated files to a colleague so that they
  3970. can at least run scripts I've written?  What about the upgrade from 1.0 to
  3971. 1.1?  If we have a site license for System 7 Pro (which includes
  3972. AppleScript 1.0), do we also have a site license for 1.1?  What about the
  3973. ScriptEditor?
  3974.  
  3975. Steve
  3976.  
  3977. ---------------------
  3978.  jonke@gsfc.nasa.gov
  3979. ---------------------
  3980. =========================================================================
  3981. Date:         Wed, 16 Mar 1994 16:44:10 -0600
  3982. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3983. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3984. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3985. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  3986. In-Reply-To:  Your message of "Mon,
  3987.               14 Mar 94 18:28:44 GMT." <9403162239.AA03883@lks.lks.csi.com>
  3988.  
  3989. > Where did you get the "Load OSAX droplet" from?
  3990. >
  3991.  
  3992. I just checked and it isn't on gaea, though it is sitting on my Mac at home.
  3993. If you'll check the /frontier/applets/ directory of gaea.kgs.ukans.edu later
  3994. this evening, you'll find it there.
  3995.  
  3996. Or someone might mail it to you......
  3997.  
  3998. pf
  3999.  
  4000.  
  4001. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4002. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  4003.  
  4004. "Bad spellers of the world, untie!"
  4005.                                         --Graffito
  4006. =========================================================================
  4007. Date:         Wed, 16 Mar 1994 17:12:42 -0600
  4008. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4009. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4010. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4011. Subject:      Re: AppleScript and System 7 Pro
  4012. In-Reply-To:  Your message of "Mon,
  4013.               14 Mar 94 16:42:02 EST." <9403162305.AA04079@lks.lks.csi.com>
  4014.  
  4015. Steve,
  4016.  
  4017. > A colleague of mine who had AppleScript 1.0 and System 7.1 recently
  4018. > upgraded to System 7 Pro.  I also have System 7 Pro and installed
  4019. > AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro.  I can not find
  4020. > the extension "Apple Events Manager" anywhere on my hard disk, but it's
  4021. > icon still appears during startup.  Is the Apple Event Manager incorporated
  4022. > as part of the system in System 7 Pro?  Does someone with System 7.1 NEED
  4023. > the Apple Event Manager extension, or just the AppleScript extension?
  4024.  
  4025. >From the faq . . .
  4026.  
  4027. 1.1 Developer's Toolkit and Scripting Kit versions both released
  4028. 1/94. This version incorporated the Apple Event Manager 1.03 extension,
  4029. which was previously separated, into the AppleScript extension.
  4030.  
  4031.  
  4032. pf
  4033.  
  4034.  
  4035. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4036. pf = Fred Terry, Cadence Design Systems, pfterry@lks.csi.com, +1 913/841-1283
  4037.  
  4038. "Bad spellers of the world, untie!"
  4039.                                         --Graffito
  4040. =========================================================================
  4041. Date:         Wed, 16 Mar 1994 00:58:36 -0500
  4042. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4043. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4044. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  4045. Organization: L'AISON - Beverly Hills, Michigan
  4046. Subject:      Re(2): "Scriptable" Finder in
  4047.  
  4048. 'scuze my ignorance y'all, but
  4049. "What is MenuSharing?"
  4050. Thanks,
  4051. Jay
  4052. --
  4053. =======
  4054.    ===================jayh@laison.w8hd.org=========================
  4055.   Metallica,||   When a man lies he murders / Some part of the world
  4056.    To Live  ||These are the pale deaths which / Men miscall their lives
  4057.      is     ||     All this I cannot bear / To witness any longer
  4058.  
  4059.    To Die   ||     Cannot the kingdom of salvation / Take me home
  4060. =======================================================================
  4061. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  4062. I'm too self-interested to  -==- permission to reproduce it in any form
  4063. speak for anyone else.      -==- unless otherwise explicitly stated.
  4064. =========================================================================
  4065. Date:         Wed, 16 Mar 1994 16:03:20 -0800
  4066. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4067. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4068. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  4069. Subject:      Re: Scripting Stuffit
  4070.  
  4071. >I can now get my script to Unstuff items, but no
  4072. >luck so far with unbinhexing them. I pretty much
  4073. >cut and pasted the translater code right from the
  4074. >sutffit examples, just changing a couple
  4075. >variable names but I don't think I changed the functionality
  4076. >of it at all.
  4077. >
  4078.         One possibility is that your don't have a registered copy of
  4079. StuffIt Lite, as the Translate command is only available in registered
  4080. versions.
  4081.  
  4082. Leonard
  4083.  
  4084. -----------------------------------------------------------------------------
  4085. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  4086. Director of Advanced Technology         AppleLink:      MACgician
  4087. Aladdin Systems, Inc.                   GEnie:          MACgician
  4088. =========================================================================
  4089. Date:         Wed, 16 Mar 1994 16:28:43 U
  4090. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4091. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4092. From:         Steve Zellers <steve_zellers@INETLINK.BERKSYS.COM>
  4093. Subject:      Re: Early observations on Po
  4094.  
  4095.          Reply to:   RE>Early observations on Power
  4096. >FinderMenus 3.0, however,
  4097. >appears to crash in a very nasty way.  This is a big disappointment,
  4098. >but with J. Baxter's recent announcement of an upcoming native
  4099. >Frontier port, I am a little consoled.
  4100.  
  4101. I'm running FM 3.0 with now problems currently - try making it the last
  4102. extension to load (zzFinderMenu 3.0)
  4103.  
  4104. BTW: FinderMenu, which an invaluable (IMHO ;-) addition to Frontier is not a
  4105. Userland product, and the code is copyright by myself - I've gotten much
  4106. valuable advice from Userland, but they are in no way responsible for its
  4107. support, I am.  (Just want to clear that up so as to take some of the tech
  4108. support load from their backs - it's their biggest TS task, unfortunately.)
  4109.  
  4110. --smz
  4111. =========================================================================
  4112. Date:         Thu, 17 Mar 1994 12:16:09 EST
  4113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4115. From:         "-s94098542-m.flanagan-ele-60-" <mpf@ACACIA.ITD.UTS.EDU.AU>
  4116. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  4117. In-Reply-To:  <9403170212.AA01185@acacia.itd.uts.EDU.AU>; from "Fred Terry" at
  4118.               Mar 16, 94 04:44:10 pm
  4119.  
  4120. >
  4121. > > Where did you get the "Load OSAX droplet" from?
  4122. > >
  4123. >
  4124. > I just checked and it isn't on gaea, though it is sitting on my Mac at home.
  4125. > If you'll check the /frontier/applets/ directory of gaea.kgs.ukans.edu later
  4126. > this evening, you'll find it there.
  4127. >
  4128. > Or someone might mail it to you......
  4129. >
  4130. > pf
  4131. >
  4132. >
  4133. > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4134. > pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  4135. >
  4136. > "Bad spellers of the world, untie!"
  4137. >                                         --Graffito
  4138. >
  4139.         what exactly does it do this load osax droplet?
  4140.  
  4141.  
  4142. --
  4143. Matthew Flanagan                                mpf@acacia.itd.uts.edu.au
  4144.  
  4145. B.E. Computer Systems Engineering
  4146. Support Advisor
  4147. University of Technology Sydney
  4148. =========================================================================
  4149. Date:         Thu, 17 Mar 1994 00:49:43 -0600
  4150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4152. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4153. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  4154. In-Reply-To:  Your message of "Thu,
  4155.               17 Mar 94 12:16:09 EST." <9403170342.AA05309@lks.lks.csi.com>
  4156.  
  4157. >       what exactly does it do this load osax droplet?
  4158.  
  4159. To quote from the description on CI$...
  4160.  
  4161. Drop any file that contains an "osax" code extension on this droplet to install
  4162. it in Frontier.root. Also parses the 'aete' resource and builds a set of glue sc
  4163. ripts to call the osax code. If you have AppleScript, look in the Scripting Addi
  4164. tions folder of the Extensions sub-folder of your System Folder. Lots of osax's
  4165. there! Be sure to change the name of the file to be a valid UserTalk identifier
  4166. before installing in Frontier. Now, if anyone comes up with a neat osax that we
  4167. don't have a verb in Frontier, you're covered. DW
  4168. =========================================================================
  4169. Date:         Thu, 17 Mar 1994 07:16:06 -0500
  4170. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4171. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4172. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  4173. Subject:      Re> AppleScript and System 7 Pro
  4174.  
  4175. The Apple Event manager is included in AppleScript 1.1 (I believe), so the
  4176. extra extension is not needed. So, if you have 1.0, you need it.
  4177.  
  4178. Jay
  4179. +---------------------------------------+----------------------------------+
  4180. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  4181. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  4182. |   | ----------+ Development Training  |                  martin@aidt.edu |
  4183. |   +---------------------------------- | (But what do they know?)         |
  4184. +---------------------------------------+----------------------------------+
  4185.  
  4186.  ------ From: Macintosh Scripting Systems, Mar 16, 1994 ------
  4187.  
  4188. A colleague of mine who had AppleScript 1.0 and System 7.1 recently
  4189. upgraded to System 7 Pro.  I also have System 7 Pro and installed
  4190. AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro.  I can not find
  4191. the extension "Apple Events Manager" anywhere on my hard disk, but it's
  4192. icon still appears during startup.  Is the Apple Event Manager incorporated
  4193. as part of the system in System 7 Pro?  Does someone with System 7.1 NEED
  4194. the Apple Event Manager extension, or just the AppleScript extension?
  4195. =========================================================================
  4196. Date:         Thu, 17 Mar 1994 08:45:06 -0500
  4197. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4198. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4199. From:         Graham Heyes <heyes@DAHP1.CEBAF.GOV>
  4200. Subject:      AppleScript, FileMakerPro and WordPerfect 3.0
  4201.  
  4202. I am running AppleScript 1.1 on System 7.1 with most of the osax from gaea so I
  4203. can do quite a few things from the sctipting language but I'm stuck on my
  4204. latest project.
  4205.         I have put together an address book using FileMaker Pro (FMP) and wanted
  4206. to script a FMP macro which would copy the address, salutation etc from the FMP
  4207. record into a WordPerfect3.0 (WP3) letter. I thought that I would do this by
  4208. copying the fields one by one onto the clipboard and pasting them into a WP3
  4209. template. The paste would be achieved using the paste apple event 'misc' 'past'
  4210. which I should be able to send from a FMP macro.
  4211.  
  4212.         It looks like WP3 doesn't accept the paste apple event so I thought that
  4213. this would be a good place to use applescript. WP3 doesn't support the paste
  4214. applescript command either but at least I can use the AutoType OSAX to do
  4215. a command-v, sounds terrible I know but I can't think of a better thing to do.
  4216. So now I have this FMP macro from hell which copies to the clipboard then runs
  4217. an applescript applet to paste into WP3. There has to be a better way but I
  4218. can't think of one.
  4219.  
  4220.         It seems bizzare to me that when I looka at the WP3 dictionary with the
  4221. script editor there are strange commands to do with mail but nothing apparent
  4222. for poking chunks of text into a documment. It is supposed to be a word
  4223. processor. Surely this is also something that needs to be done frequently from
  4224. scripts but I haven't found any good examples yet.
  4225.  
  4226.         I looked through "The TAO of Applescript" but there are no apparent
  4227. examples of how to copy text from one application to another.
  4228.  
  4229. Has anyone got any help or advice on how to go about this?
  4230.  
  4231.                 Graham
  4232.  
  4233. -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
  4234. Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
  4235. =========================================================================
  4236. Date:         Thu, 17 Mar 1994 08:55:22 -0500
  4237. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4238. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4239. From:         Tom Lanning <tlanning@GTE.COM>
  4240. Subject:      Conversions
  4241.  
  4242. Hello,
  4243.   Is it possible to provide user-defined type conversion of script objects
  4244. in Apple Script.  For example, if I have ...
  4245.  
  4246.     script bogus
  4247.         property contents:{}
  4248.     end script
  4249.  
  4250.  ... can I write a handler that is part of the script that will allow
  4251. someone to write ...
  4252.  
  4253.     bogus as string
  4254.  
  4255.   I have several script objects that are "converted" to strings a lot, and
  4256. using the "built-in" style of conversion looks better and is more
  4257. consistent then writing something like this ...
  4258.  
  4259.     script bogus
  4260.         property contents:{}
  4261.  
  4262.         to asString()
  4263.                 -- stuff
  4264.         end asString
  4265.     end script
  4266.  
  4267.  ... and is called like this ...
  4268.  
  4269.     bogus asString()
  4270.  
  4271.  ... instead of ...
  4272.  
  4273.     bogus as string
  4274.  
  4275.   Any suggestions?
  4276.  
  4277. ----
  4278. Tom Lanning
  4279.  
  4280. +1.617.466.4221  /  tlanning@gte.com
  4281.  
  4282. GTE Laboratories Incorporated
  4283. 40 Sylvan RD
  4284. Waltham MA 02254 USA
  4285. =========================================================================
  4286. Date:         Thu, 17 Mar 1994 10:34:38 -0800
  4287. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4288. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4289. From:         argon lazer battlegrid <ub141@FREENET.VICTORIA.BC.CA>
  4290. Subject:      Re: Scripting Stuffit
  4291.  
  4292. At  4:03 PM 3/16/94 -0800, Leonard Rosenthol wrote:
  4293. >>I can now get my script to Unstuff items, but no
  4294. >>luck so far with unbinhexing them. I pretty much
  4295. >>cut and pasted the translater code right from the
  4296. >>sutffit examples, just changing a couple
  4297. >>variable names but I don't think I changed the functionality
  4298. >>of it at all.
  4299. >>
  4300. >        One possibility is that your don't have a registered copy of
  4301. >StuffIt Lite, as the Translate command is only available in registered
  4302. >versions.
  4303.  
  4304. It is a registered version.
  4305.  
  4306. Chris Fraser     ub141@freenet.victoria.bc.ca     cfraser@island.amtsgi.bc.ca
  4307.                Finger me here for my PGP public key--^
  4308. "Note: Some very inexpensive pedals are not serviceable. Other pedals are
  4309. theoretically possible to service, but seem designed to discourage it. When
  4310. these need work, we suggest you work them into a garbage can, and get a new
  4311. pair of pedals." Bridgestone Owner's Manual, Bridgestone Cycle USA.
  4312. =========================================================================
  4313. Date:         Thu, 17 Mar 1994 18:48:21 -0500
  4314. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4315. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4316. From:         Chris Brannon <cbbst+@PITT.EDU>
  4317. Subject:      Anarchie Script
  4318.  
  4319. Hey all,
  4320.  
  4321. I was taking a look at the Download Script provided with Anarchie, and I
  4322. found that AS 1.0 chokes on this line:
  4323.  
  4324.         set rn to open for access file theinput with write permission
  4325.  
  4326. It expected an end of line when it encountered "access".
  4327.  
  4328. What can I do to get the script to work?
  4329.  
  4330.  
  4331.  
  4332. Regards,...Chris
  4333. ---------------------------------------------------------------------------
  4334. Christopher B. Brannon                             University of Pittsburgh
  4335. cbbst+@pitt.edu                                           Political Science
  4336. =========================================================================
  4337. Date:         Thu, 17 Mar 1994 21:12:41 -0500
  4338. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4339. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4340. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  4341. Subject:      Re> Anarchie Script
  4342.  
  4343. ----
  4344. set rn to open for access file theinput with write permission
  4345.           ^^^^^^^^^^^^^^^
  4346.  
  4347. If I'm not mistaken, this command (osax) was added in AS 1.1 (I could be
  4348. wrong, I didn't use AS 1.0 for very long).
  4349.  
  4350. Jay
  4351. =========================================================================
  4352. Date:         Thu, 17 Mar 1994 22:59:30 -0600
  4353. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4354. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4355. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  4356. Subject:      FM Pro AppleScript Examples
  4357.  
  4358. >Anyone have any good example scripts using FileMaker?
  4359. >
  4360. >My main question is - how do you (or can you) specify a "whose" clause in a
  4361. >get data statement. How do you find record(s) that contain a certain value in
  4362. >one of the fields?
  4363. >
  4364. >Thanks,
  4365. >Jay
  4366. >+---------------------------------------+----------------------------------+
  4367. >| --------------+ Jay M. Martin         | All ideas here are my own and    |
  4368. >|   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  4369. >|   | ----------+ Development Training  |                  martin@aidt.edu |
  4370. >|   +---------------------------------- | (But what do they know?)         |
  4371. >+---------------------------------------+----------------------------------+
  4372. >
  4373.  
  4374. I found a nice collection of examples on America Online that I have sent to
  4375. gaea--they should be showing up soon.  I'm taking the author at his word
  4376. and assuming it's OK to upload them.
  4377.  
  4378. Here's the description from AOL:
  4379.  
  4380. >Subj:  FM Pro & AppleScript                  February 20, 1994
  4381. >From:  PackerDev
  4382. >
  4383. >File:  FileMaker & AppleScript.sea (90831 bytes)
  4384. >DL time (2400 baud): < 10 minutes
  4385. >Download count: 574
  4386. >
  4387. >AUTHOR:    J.Gagne
  4388. >NEEDS:     AppleScript System 1.0 or greater
  4389. >
  4390. >KEYWORDS:  CLARIS FILEMAKER PRO APPESCRIPT EVENTS SCRIPTING APPLE EVENTS IAC
  4391. >FRONTIER SCRIPTS
  4392. >
  4393. >This is a collection of FM Pro/AppleScript, examples that are supplied on the
  4394. >Apple Developer AppleScript 1.0  Beta CD. I thought they would be of interest
  4395. >to all and got permission from Apple to distribute them to all who would want
  4396. >them.
  4397. >
  4398. >AppleScript lends awesome power to FileMaker, including condidtional scripting
  4399. >and custom dialog boxes, as well as many quasi-relational capabilities.  The
  4400. >AppleScript kit can be purchased from APDA (Apple Programmers and Developers
  4401. >Association), and Apple recently released the AppleScript Developers Kit but
  4402. >decided not to include these. Too bad!
  4403. >
  4404. >Don't stay up too late with this stuff! If you want to see more of this type
  4405. >of stuff I'd be happy to start uploading some of my scripts as well.
  4406. >
  4407. >Jeff Gagne
  4408. >Packer Software,Inc.
  4409. >
  4410. >----------------------------------------------------------
  4411. >The enclosed file(s) was(were) checked with Disinfectant 3.2 and found to be
  4412. >free of infection.
  4413. >Jeff Gagne, Product Development, Packer Support Area
  4414. >---------------------------------------------------------
  4415.  
  4416.  
  4417.  
  4418. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4419. Tom Donovan           "Perhaps the most universal information trap is the...
  4420. System Administrator   trap of forgetting what it's like not to know. The
  4421. CoVis Project          minute we know something, we forget what it was like
  4422. Northwestern Univ.     not to know it."
  4423.                                                     --Richard S. Wurman
  4424. E-mail: donovan@covis.nwu.edu                    "Information Anxiety"
  4425. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4426. =========================================================================
  4427. Date:         Thu, 17 Mar 1994 22:28:55 -0800
  4428. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4429. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4430. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4431. Subject:      Re: Early observations on PowerPC compatibility with scripting
  4432.               tools
  4433.  
  4434. At 11:09 3/16/94 -0500, David Myers wrote:
  4435. >Works well; works reasonably fast (but hey, I just traded up from
  4436. >an SE/30, so how would I know?).  FinderMenus 3.0, however,
  4437. >appears to crash in a very nasty way.  This is a big disappointment,
  4438. >but with J. Baxter's recent announcement of an upcoming native
  4439. >Frontier port, I am a little consoled.
  4440.  
  4441. If you are using the FinderMenu 3.0 as shipped with Frontier 3.0, you will
  4442. find a crash as soon as Finder tries to draw its menus, if:
  4443.    (1) you use the iconic menu titles (ICON(resID)), and
  4444.    (2) you don't move the FinderMenu Prefs file into the Preferences folder
  4445. on the machine you are running on (each Preferences folder if you play
  4446. games with multiple Systems).
  4447.  
  4448. The reason is an unfortunate oversight:  the icon resources are stored in
  4449. the Preferences file, and "FinderMenus 3.0" (which is really FinderMenus
  4450. 2.0b7) assumes they exist.  "FinderMenus 2.0b10" (which despite the
  4451. numbering is later than FinderMenus 3.0, but wasn't tested enough to ship
  4452. with Frontier 3.0 fixes that problem and a couple of others.  I think gaea
  4453. has it.
  4454.  
  4455. >
  4456. >AppleScript:
  4457. >
  4458. >The machine comes with Applescript 1.1 and something I believe called
  4459. >"RISC Plug-In" (I am at work as I write this, so I can't check on the
  4460. >full name).  What exactly this "RISC Plug-In" does I can't say for
  4461. >sure.  Anybody know?  I prefer Frontier, so I didn't do too much
  4462. >playing around with AS.
  4463.  
  4464. One must believe that the "RISC Plug-In" patches something to make
  4465. AppleScript work (or work better) on a powerPC machine.  There's a similar
  4466. thing for the Finder.
  4467.  
  4468. --John
  4469.  
  4470. --
  4471. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4472.    "This is the network of our disconnect"
  4473. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4474. =========================================================================
  4475. Date:         Fri, 18 Mar 1994 06:13:20 -0500
  4476. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4477. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4478. From:         Susan Foster <susan_foster@POSTOFFICE.AIDT.EDU>
  4479. Subject:      Droplet loses references
  4480.  
  4481. I've created an AS droplet that takes one or more Informed Manager forms and
  4482. generates a MacWrite Pro document with the data from the form(s). On my
  4483. machine, where the script was compiled, everything's fine.
  4484.  
  4485. On others' machines, EVERY time the script runs, it asks the user to find the
  4486. Informed Manager and MacWrite Pro applications. Apparently, the references to
  4487. the applications are being lost between runs. (If the script is recompiled on
  4488. the other Mac, it only asks about the applications the first time it's run;
  4489. from then on, it knows where they are.)
  4490.  
  4491. It seems that this weirdness only affects droppables; when I take out the
  4492. dropbox stuff, there's no reference problem.
  4493.  
  4494. Has anybody else had this problem, or am I maybe doing something wrong?
  4495.  
  4496. Thanks,
  4497. Susan
  4498.  
  4499. +---------------------------------------+----------------------------------+
  4500. | --------------+ Susan Foster          | All ideas here are my own and    |
  4501. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  4502. |   | ----------+ Development Training  |                  foster@aidt.edu |
  4503. |   +---------------------------------- |                                  |
  4504. +---------------------------------------+----------------------------------+
  4505. =========================================================================
  4506. Date:         Fri, 18 Mar 1994 08:43:24 -0800
  4507. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4508. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4509. From:         David Lewis <lewis@NETCOM.COM>
  4510. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  4511.  
  4512. >Where did you get the "Load OSAX droplet" from?
  4513. >
  4514. >Jeremy Quinn
  4515. >
  4516. CompuServe's UserLand forum. As I recall, it's in the UCMD/XCMD library.
  4517.  
  4518.         David
  4519.  
  4520. ------------------------------------------------------------------------
  4521. David Lewis               lewis@netcom.com                (408) 439-2374
  4522. =========================================================================
  4523. Date:         Fri, 18 Mar 1994 10:48:32 PST
  4524. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4525. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4526. From:         Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
  4527. Subject:      Droplet loses references
  4528. In-Reply-To:  Susan Foster's message of Fri,
  4529.               18 Mar 1994 06:13:20 -0500
  4530.               <9403181449.AA24934@ptolemy.arc.nasa.gov>
  4531.  
  4532. Susan,
  4533. Is your droplet asking where the application is or asking the user to log into
  4534. it?  I had a similar situation until I installed the Auto-Guest init that
  4535. supresses the dialog box that asks the user to log into the remote app.
  4536.  
  4537. I don't know if this is your problem, but thought I'd chime in (I use
  4538. Informed, Applescript, etc a lot and haven't really seen the problem you
  4539. describe).
  4540.  
  4541. Good luck,
  4542.  
  4543. Michael Compton
  4544. AI Research Branch M/S 269-2
  4545. NASA Ames Research Center
  4546. Moffett Field, CA 94035-1000
  4547. phone: (415) 604-6776
  4548. fax:   (415) 604-3594
  4549. internet: compton@ptolemy.arc.nasa.gov
  4550. =========================================================================
  4551. Date:         Fri, 18 Mar 1994 12:13:06 -0800
  4552. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4553. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4554. From:         David Ray <daver@NETCOM.COM>
  4555. Subject:      Auto-guest init - where?
  4556.  
  4557. Where can I find the Auto-Guest init? I looked and it wasn't on gaea.
  4558.  
  4559. Thanks,
  4560.  
  4561. Dave Ray
  4562. daver@netcom.com
  4563. =========================================================================
  4564. Date:         Fri, 18 Mar 1994 12:52:40 PST
  4565. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4566. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4567. From:         Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
  4568. Subject:      Auto-guest init - where?
  4569. In-Reply-To:  David Ray's message of Fri,
  4570.               18 Mar 1994 12:13:06 -0800
  4571.               <9403182048.AA08570@ptolemy.arc.nasa.gov>
  4572.  
  4573. I found it in the Info-Mac archives at sumex-aim.stanford.edu.  It's probably
  4574. other places, too.  It's fairly old (1991) and unsupported, but seems to work
  4575. very well.  I'll upload it to gaea if that would be of interest to everyone.
  4576.  
  4577. Michael Compton
  4578. AI Research Branch M/S 269-2
  4579. NASA Ames Research Center
  4580. Moffett Field, CA 94035-1000
  4581. phone: (415) 604-6776
  4582. fax:   (415) 604-3594
  4583. internet: compton@ptolemy.arc.nasa.gov
  4584. =========================================================================
  4585. Date:         Fri, 18 Mar 1994 09:50:17 -0800
  4586. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4587. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4588. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4589. Subject:      Re: FileMaker Pro examples
  4590.  
  4591. At 16:19 3/16/94 -0500, Brian V. Hughes wrote:
  4592. >>My main question is - how do you (or can you) specify a "whose" clause in a
  4593. >>get data statement. How do you find record(s) that contain a certain value in
  4594. >>one of the fields?
  4595. >
  4596. >    tell app "FileMaker Pro"
  4597. >        show every record where cell "fieldname" contains "value"
  4598. >    end tell
  4599. >
  4600. >    There are all kinds of variations on this, you can also do
  4601. >combinations, and use things like "does not contain". This has to be one
  4602. >of the coolest things about the Apple Event Object Model, IMO.
  4603.  
  4604. I agree with Brian on the latter comment, but...
  4605.  
  4606. For medium to large FileMaker databases, search time can become very long
  4607. (I learned how to specifiy timeouts in AppleScript because of that).  If
  4608. that becomes a problem, try to express the search in a FileMaker
  4609. script/macro thing, and trigger that from your AppleScript script.  The
  4610. diference in execution time can be considerable.
  4611.    --John
  4612.  
  4613. --
  4614. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4615.    "This is the network of our disconnect"
  4616. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4617. =========================================================================
  4618. Date:         Fri, 18 Mar 1994 12:01:21 -0500
  4619. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4620. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4621. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  4622. Subject:      ObjectMaster and AppleScript 1.1 syntax
  4623.  
  4624. ObjectMaster has extensive support for AppleEvents, including the ability
  4625. to add menus to the program (or add to existing menus) and have them send
  4626. AppleScript (or MPW Scripts).  Anyway, they have some examples of this
  4627. which start up now that I have AppleScript.  The catch is that they cough
  4628. up.  There's a file called "1-Definitions" in the AppleScript folder in the
  4629. Starup Items folder (in Object Master).  I found that I needed to add empty
  4630. parenthesis after all the procedure names defined in the definitions file
  4631. in order to get it to work.  Is this a bug in AppleScript 1.1, or a change
  4632. in syntax (or a stricter enforcement of syntax)?
  4633.  
  4634. Steve
  4635.  
  4636. ---------------------
  4637.  jonke@gsfc.nasa.gov
  4638. ---------------------
  4639. =========================================================================
  4640. Date:         Fri, 18 Mar 1994 17:59:53 MET
  4641. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4642. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4643. From:         "Povl H. Pedersen" <pope@IMV.AAU.DK>
  4644. Subject:      Selecting FileMaker records using AS
  4645.  
  4646. For a customer of mine I have made a longer AppleScript to generate some
  4647. rather long reports. They get lots of data from a FileMaker database, and
  4648. takes some seconds for every record (on a Q610). I will probably make it
  4649. get repeating fialds as a list to speed it up.
  4650.  
  4651. But the most annoying thing is that finding every record whose field "date"
  4652. equals "0192" takes forever.
  4653.  
  4654. Any good idea how to speed up finding the records you want ? FileMaker does
  4655. it interactively in much lesser time. It looks as if the AppleScript is
  4656. pulling the field over from each record, doing the selection on its own,
  4657. and then telling FM if the record matches or not.
  4658.  
  4659. The search can take a few minutes from AppleScript, and definitely under 5
  4660. seconds in FileMaker.
  4661.  
  4662. ---
  4663. Povl H. Pedersen  -  Macintosh Consultant and Programmer
  4664. System Administrator at the Aarhus Engineering School
  4665. pope@imv.aau.dk (preferred)  /  povlphp@uts.uni-c.dk
  4666.  
  4667. "Macintosh...for those who can see through Windows!"
  4668. =========================================================================
  4669. Date:         Fri, 18 Mar 1994 08:00:05 -0500
  4670. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4671. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4672. From:         Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
  4673. Subject:      new AE stuff in Eudora
  4674.  
  4675. I noticed a new element in the Eudora1.4.1 dictionary, clas preference,
  4676. which looks wonderfuly useful to me.  There are 91 preferences most of
  4677. which can be changed using AEs.
  4678.  
  4679. The dictionary says that they can only be accessed by number and refers you
  4680. to the Q&A stack which nicely enumerates and descibes them.
  4681.  
  4682. So my queston is this, has anyone figured out how AppleScript might make
  4683. changes to these items?  I am particularly interested in the following
  4684. tems:
  4685.  
  4686. 3 POP account
  4687. 5 Return adress
  4688. 22 Include signature?
  4689.  
  4690. Thanks for any light you may be able to shed on this.
  4691. =========================================================================
  4692. Date:         Fri, 18 Mar 1994 15:49:25 -0600
  4693. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4694. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4695. From:         Jody Otterness <JMOTTERNESS@STTHOMAS.EDU>
  4696. Subject:      Re: SIGNOFF SDU
  4697.  
  4698. PLEASE SIGN ME OFF TOO. JMOTTERNESS
  4699. =========================================================================
  4700. Date:         Fri, 18 Mar 1994 16:18:50 -0800
  4701. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4702. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4703. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  4704. Subject:      Re: new AE stuff in Eudora
  4705.  
  4706. >So my queston is this, has anyone figured out how AppleScript might make
  4707. >changes to these items?  I am particularly interested in the following
  4708. >tems:
  4709. >
  4710.         You refer to them as preference x, where x is the number you want.
  4711.  
  4712. Leonard
  4713.  
  4714. -----------------------------------------------------------------------------
  4715. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  4716. Director of Advanced Technology         AppleLink:      MACgician
  4717. Aladdin Systems, Inc.                   GEnie:          MACgician
  4718. =========================================================================
  4719. Date:         Fri, 18 Mar 1994 16:28:41 -0800
  4720. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4721. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4722. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4723. Subject:      Re: Selecting FileMaker records using AS
  4724.  
  4725. >For a customer of mine I have made a longer AppleScript to generate some
  4726. >rather long reports. They get lots of data from a FileMaker database, and
  4727. >takes some seconds for every record (on a Q610). I will probably make it
  4728. >get repeating fialds as a list to speed it up.
  4729. >
  4730. >But the most annoying thing is that finding every record whose field "date"
  4731. >equals "0192" takes forever.
  4732. >
  4733. >Any good idea how to speed up finding the records you want ? FileMaker does
  4734. >it interactively in much lesser time. It looks as if the AppleScript is
  4735. >pulling the field over from each record, doing the selection on its own,
  4736. >and then telling FM if the record matches or not.
  4737.  
  4738. It does take rather too long, doesn't it.  Your surmise is quite
  4739. reasonable, but not, as it happens, correct.  The problem is that the
  4740. search model assumed by the standard events in the Apple Event Registry is
  4741. nothing like the search model used internally by FileMaker.  The result is
  4742. a lot of armwaving between the Object Support Library and FileMaker code.
  4743. [It never gets back into the AppleScript system itself.]
  4744.  
  4745. If possible in your situation, you should craft a FileMaker macro which
  4746. does the search for you, and trigger than macro by name from AppleScript
  4747. using do script.  If you can make that work for your situation, it will be
  4748. far faster than doing the search using the show event.
  4749.    --John
  4750.  
  4751. [Above information second hand from a developer at Claris who observed a
  4752. conversation on CompuServe (I think) about the slowness of the show event a
  4753. couple of months ago.]
  4754.  
  4755. --
  4756. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4757.    "This is the network of our disconnect"
  4758. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  4759. =========================================================================
  4760. Date:         Fri, 18 Mar 1994 23:47:13 -0500
  4761. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4762. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4763. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  4764. Subject:      Re> Droplet loses references
  4765.  
  4766. Michael,
  4767. I'm a co-worker of Susan's, and the answer is no. It asks for the location of
  4768. Informed Manager and MacWrite Pro by putting up a SF dialog. It really is
  4769. pretty strange. We wrote the script with an "on open" handler, and EVERYTIME
  4770. it's run on a machine (besides the one that it was originally compiled on) it
  4771. asks for this info. However, after we altered it so that it didn't have the
  4772. on open handler and was just run as a normal AS application, it works fine.
  4773.  
  4774. I'm going to do some more checking, but here's another tidbit: the droplets
  4775. that shipped with AS 1.1 Dev Kit do the exact same thing. Everytime they run,
  4776. they ask for the Scriptable Text Editor unless you open them with the script
  4777. editor and recompile. We're stumped!
  4778.  
  4779. Jay
  4780.  
  4781.  ------ From: Macintosh Scripting Systems, Fri, Mar 18, 1994 ------
  4782.  
  4783. Susan,
  4784. Is your droplet asking where the application is or asking the user to log
  4785. into
  4786. it?  I had a similar situation until I installed the Auto-Guest init that
  4787. supresses the dialog box that asks the user to log into the remote app.
  4788.  
  4789. I don't know if this is your problem, but thought I'd chime in (I use
  4790. Informed, Applescript, etc a lot and haven't really seen the problem you
  4791. describe).
  4792. =========================================================================
  4793. Date:         Sat, 19 Mar 1994 10:07:27 MET
  4794. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4795. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4796. From:         "Povl H. Pedersen" <pope@IMV.AAU.DK>
  4797. Subject:      Re: Droplet loses references
  4798.  
  4799. >On others' machines, EVERY time the script runs, it asks the user to find the
  4800. >Informed Manager and MacWrite Pro applications. Apparently, the references to
  4801. >the applications are being lost between runs. (If the script is recompiled on
  4802. >the other Mac, it only asks about the applications the first time it's run;
  4803. >from then on, it knows where they are.)
  4804.  
  4805. I guess that you could give your applet a property containing the full path
  4806. to the application (unless there is some OSAX to return the FSSpec of a
  4807. specific creator usiong the desktop file as documented in IM VI). And then
  4808. do something like:
  4809.  
  4810. if theApp is not "" then
  4811.   -- find the app some way, and store in theApp
  4812. end if
  4813.  
  4814. if not fileExists(theApp) then
  4815.   -- find app just as above
  4816. end if
  4817.  
  4818. >It seems that this weirdness only affects droppables; when I take out the
  4819. >dropbox stuff, there's no reference problem.
  4820.  
  4821. no explanation for this.
  4822.  
  4823. ---
  4824. Povl H. Pedersen  -  Macintosh Consultant and Programmer
  4825. System Administrator at the Aarhus Engineering School
  4826. pope@imv.aau.dk (preferred)  /  povlphp@uts.uni-c.dk
  4827.  
  4828. "Macintosh...for those who can see through Windows!"
  4829. =========================================================================
  4830. Date:         Sat, 19 Mar 1994 10:20:39 EST
  4831. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4832. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4833. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  4834. Subject:      MS: Admin Note
  4835.  
  4836. Just a posting of the semi-regular reminder of how things work.
  4837.  
  4838. Please remember to send all commands to LISTSERV@dartmouth.edu and not to the
  4839. list itself. If the listserv is giving trouble and you want to talk to a
  4840. human, then send mail to macscripting-request@dartmouth.edu.
  4841.  
  4842.  
  4843. In short, the relevent addresses you need to know are as follows:
  4844.  
  4845. * LISTSERV@dartmouth.edu
  4846.     the master controller. Mail is handled by computer
  4847.     so you have a limited set of commands you can send it.
  4848.     (Sending the HELP command will get you basics on this
  4849.     including instructions on how to sign off the list and
  4850.     set basic options for yourself like whether you want to
  4851.     receive the list in digest format or not)
  4852.  
  4853. * MacScripting-Request@dartmouth.edu
  4854.     Fred Terry and Andy J. Williams, the list administrators.
  4855.     We can be contacted when you have a problem with the LISTSERV
  4856.     program above or when you have any administrative questions.
  4857.  
  4858. * MacScripting@dartmouth.edu
  4859.     the distribution list. Mail sent here goes to
  4860.     all the recipients.
  4861.  
  4862.  
  4863. If you have ANY questions at all please contact us at
  4864. MacScripting-Request@dartmouth.edu.
  4865.  
  4866. -A
  4867. =========================================================================
  4868. Date:         Sat, 19 Mar 1994 15:43:15 CST
  4869. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4870. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4871. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  4872. Subject:      Scripting Books avail. retail
  4873.  
  4874. I visited a local Borders Bookstore today and found both the Scripting
  4875. Language Guide and the Scripting Additions Guide on the shelf. So both
  4876. of these are available without buying the software package. If you're
  4877. getting them this way, I would buy both. Forgot to get the price.
  4878.  
  4879. Peter
  4880. =========================================================================
  4881. Date:         Sat, 19 Mar 1994 17:09:17 -0800
  4882. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4883. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4884. From:         Jon Pugh <jonpugh@NETCOM.COM>
  4885. Subject:      Re: FileMaker Whose Clauses
  4886.  
  4887. >>Any good idea how to speed up finding the records you want ? FileMaker does
  4888. >>it interactively in much lesser time. It looks as if the AppleScript is
  4889. >>pulling the field over from each record, doing the selection on its own,
  4890. >>and then telling FM if the record matches or not.
  4891. >
  4892. >It does take rather too long, doesn't it.  Your surmise is quite
  4893. >reasonable, but not, as it happens, correct.  The problem is that the
  4894. >search model assumed by the standard events in the Aple Event Registry is
  4895. >nothing like the search model used internally by FileMaker.  The result is
  4896. >a lot of armwaving between the Object Support Library and FileMaker code.
  4897. >[It never gets back into the AppleScript system itself.]
  4898.  
  4899. Quite true, except for the details.  ;)
  4900.  
  4901. The OSL handling of whose clauses is simply the easy way of doing whose
  4902. clauses.  You don't have to do any work at all to support them (well, you
  4903. have to use the OSL).  What the OSL does is call your GetData handler for
  4904. each property and then call your comparison proc to see if it satisfies the
  4905. condition in the whose clause.  If it does, it adds the object to a list
  4906. and continues.  This results in the OSL doing the entire search via the OSL
  4907. callbacks.
  4908.  
  4909. What the FileMaker guys should have done (uh oh, this could get lengthy ;)
  4910. was supported whose clauses directly.  This would mean that they would take
  4911. the object specifier before the OSL gets its grubby code on it, turn it
  4912. into one of their internal search data structures, do the search and return
  4913. the results, without the "aid" of the OSL.  It would result in much better
  4914. response time.  The OSL even has support for this so that you can simply
  4915. tell it that you want to do the whose search and it will do everything else
  4916. as usual.
  4917.  
  4918. The OSL's support of whose clauses is great though, it just isn't meant to
  4919. handle large numbers of objects.  It does small groups of objects, such as
  4920. windows and documents fine though, and absurdly easily too.
  4921.  
  4922. Unfortunately, the FileMaker guys were one of the first to support
  4923. AppleScript and they were so early that they shipped FileMaker before
  4924. AppleScript was done.  This resulted in them getting burned by some last
  4925. minute changes and having a very unfortunate time on the bleeding edge.
  4926. Throw in the fact that the main AE programmer had some serious health
  4927. problems during that time and you've got a receipe for skipped features.
  4928. Personally, I don't blame them. The trouble is that management should
  4929. allocate some time to improve their AE support some more.  Searching from
  4930. AE is one of the places it really needs improvement.
  4931.  
  4932. Just my 2 cents.
  4933.  
  4934. Jon
  4935. =========================================================================
  4936. Date:         Sat, 19 Mar 1994 18:32:38 -0700
  4937. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4938. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4939. From:         Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
  4940. Subject:      CAD Packages
  4941.  
  4942. Has anyone come across a CAD package which is AEvent responsive, even at
  4943. the DoScript level? None of the major CAD vendors seem to have got round
  4944. to making themselves AEvent aware, even though they all have powerful
  4945. script languages of their own.
  4946. b.
  4947.  
  4948. Brian Gaines              Knowledge Science Institute, University of Calgary
  4949. gaines@cpsc.ucalgary.ca   Calgary, Alberta, Canada T2N 1N4
  4950. =========================================================================
  4951. Date:         Sat, 19 Mar 1994 20:47:29 -0800
  4952. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4953. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4954. From:         Benjamin Broder <bbroder@HSC.USC.EDU>
  4955. Subject:      NOW Up-To-Date Scripting
  4956.  
  4957. Has anyone had any success with scripting NOW Up-To-Date,
  4958. I can't seem to get much of anything to work. If anyone
  4959. has a small example they could share, I'd appreciate it.
  4960. I just want to
  4961.         1. Create an event on a given date, with certain text/title, etc.
  4962.         2. Get any events on a given date.
  4963.  
  4964. Thanks.
  4965.  
  4966.         Ben
  4967. --
  4968. bbroder@hsc.usc.edu     Benjamin Broder    FAX (818) 457-4100
  4969. USC Institute for Health Promotion and Disease Prevention Research
  4970. 1000 S. Fremont Ave. #641, Alhambra, CA 91803-1358 (818) 457-4029
  4971. =========================================================================
  4972. Date:         Sat, 19 Mar 1994 23:06:10 U
  4973. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4974. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4975. From:         Chuck Pliske <chuckp@U.WASHINGTON.EDU>
  4976. Subject:      Re: MACSCRPT Digest - 18 Mar 1994 to 19 Mar 1994
  4977.  
  4978. Generic CADD is quite AEvent responsive.  Unfortunately it's not actively
  4979. supported.
  4980.  
  4981. Chuck
  4982.  
  4983.  ------ From: Macintosh Scripting Systems, Sat, Mar 19, 1994 ------
  4984.  
  4985. Has anyone come across a CAD package which is AEvent responsive, even at
  4986. the DoScript level? None of the major CAD vendors seem to have got round
  4987. to making themselves AEvent aware, even though they all have powerful
  4988. script languages of their own.
  4989. =========================================================================
  4990. Date:         Sun, 20 Mar 1994 13:35:32 -0500
  4991. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4992. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4993. From:         David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
  4994. Subject:      Re: Selecting FileMaker records using AS
  4995.  
  4996. If you do use a Filemaker script to do the search for you, then you
  4997. lose the ability to make the entire function automatic.  For example,
  4998. If you have the search find all the records with the date equal to "0192"
  4999. and there are not any records with such data then a dialog box will ask
  5000. if you wish to modify the request, continue, or cancel.
  5001.  
  5002. I created a Database with over 20,000 records and wanted to automate certain
  5003. tasks.  I encontered the same problem using AppleScript to do the find.
  5004. It doesn't use FileMaker Pro's Index when performing the search.  I used a
  5005. Filemaker script to do the search instead.  This led me to the problem stated
  5006. in the previous paragraph.  I was able to get around this problem as stated
  5007. below.
  5008.  
  5009. You must start the search script by creating a "dummy record" and inputing the
  5010. data you wish to search (this insures you will always find at least 1 record).
  5011. Perform the search.  Delete the last record (removes the "dummy record").
  5012.  
  5013. Using the above procedure I am able to perform the find in a matter of seconds
  5014.  wit
  5015. without the problem of automation.
  5016.  
  5017. David Weingarten
  5018. Emory University - Chemistry
  5019. dweinga@emoryu1.cc.emory.edu
  5020. AOL - Chemdw
  5021. =========================================================================
  5022. Date:         Sun, 20 Mar 1994 15:25:26 -0500
  5023. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5024. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5025. From:         "David N. Blank-Edelman" <dnb@MESHUGGE.MEDIA.MIT.EDU>
  5026. Subject:      Re: NOW Up-To-Date Scripting
  5027.  
  5028. At  8:47 PM 3/19/94 -0800, Benjamin Broder wrote:
  5029. >Has anyone had any success with scripting NOW Up-To-Date,
  5030.  
  5031. There's a whole set of example scripts (8 total) on AppleLink to do NUD 2.1
  5032. scripting.  Here's the path:
  5033.  
  5034. Developer Support: AppleScript Talk: Script Exchange
  5035.  
  5036. I have them and can forward if you need them.  They all conform to the
  5037. Schedule Suite (also on AppleLink: Developer Support: System 7 Talk: Apple
  5038. Events Discussion: Apple Events Suite Development: Schedule Suite 1.0'1)
  5039.  
  5040. Hope this helps.
  5041.     Peace,
  5042.        dNb
  5043. =========================================================================
  5044. Date:         Sun, 20 Mar 1994 17:25:21 -0500
  5045. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5046. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5047. From:         Chong Li <lic@NEXTWORK.ROSE-HULMAN.EDU>
  5048. Subject:      test & ignore it
  5049.  
  5050. test
  5051. =========================================================================
  5052. Date:         Sun, 20 Mar 1994 17:46:11 -0500
  5053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5055. From:         Chong Li <lic@NEXTWORK.ROSE-HULMAN.EDU>
  5056. Subject:      test & ignore it
  5057.  
  5058. another test
  5059. =========================================================================
  5060. Date:         Mon, 21 Mar 1994 00:05:30 EST
  5061. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5062. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5063. From:         "William J. Jamison" <jami1@AOL.COM>
  5064. Subject:      Re: Selecting FileMaker records using AS
  5065.  
  5066. Or: If you have QK2. How about an AE calling a QK2 shortcut that calls the FM
  5067. script and then hits the Cancel button when and if the Cancel/Modify Find
  5068. dialogue window comes up or better yet just a QK2 calling the FM script or a
  5069. Tempo macro would be even better?  Just razzing you. Interesting predicament.
  5070. Another fine mess John's (John W. Baxter) gotten us into. Actually David ,
  5071. the only real suggestion I might make would be to have FM send an AE back
  5072. saying it didn't find any records and to send an AE to itself to hit the
  5073. Cancel button, if that could be done, not sure. Is that possible John
  5074. =========================================================================
  5075. Date:         Mon, 21 Mar 1994 03:02:01 EST
  5076. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5077. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5078. From:         "William J. Jamison" <jami1@AOL.COM>
  5079. Subject:      Re: Rejected posting to MACSCRPT@DARTCMS1
  5080.  
  5081. Possible dup because I also addressed it to "jwbaxter@pt.olympus.net"?
  5082. =========================================================================
  5083. Date:         Mon, 21 Mar 1994 06:32:03 -0600
  5084. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5085. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5086. From:         Richard Millward <rsm@MCS.COM>
  5087. Subject:      replying to digest (not *exactly* scripting...)
  5088.  
  5089. I'm relatively new to mailing lists. I've figured out how to set
  5090. MacScripting to "digest" so it's easier to read, but now I'm not sure how
  5091. to reply to a specific message within the digest using Eudora 1.4.2. Do I
  5092. just copy/paste the relevant portions into a new message, or is there some
  5093. more automated way that I'm not seeing? TIA.
  5094.  
  5095. Richard Millward
  5096. MCSNet/Chicago
  5097. rsm@mcs.com
  5098. =========================================================================
  5099. Date:         Mon, 21 Mar 1994 08:57:26 -0600
  5100. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5101. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5102. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5103. Subject:      Re: MacPPP OSAX under Frontier's FinderMenu
  5104. In-Reply-To:  Your message of "Fri,
  5105.               18 Mar 94 08:43:24 PST." <9403181704.AA21152@lks.lks.csi.com>
  5106.  
  5107. David Lewis writes,
  5108.  
  5109. > >Where did you get the "Load OSAX droplet" from?
  5110. > >
  5111. > >Jeremy Quinn
  5112. > >
  5113. > CompuServe's UserLand forum. As I recall, it's in the UCMD/XCMD library.
  5114. >
  5115. >         David
  5116.  
  5117. You'll also find it on gaea.kgs.ukans.edu in
  5118. /frontier/applets/LoadOSAXDroplet.sit.hqx.
  5119.  
  5120.  
  5121. pf
  5122.  
  5123.  
  5124. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5125. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  5126.  
  5127. "Bad spellers of the world, untie!"
  5128.                                         --Graffito
  5129. =========================================================================
  5130. Date:         Mon, 21 Mar 1994 09:04:00 U
  5131. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5132. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5133. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  5134. Subject:      Re: Re- NOW Up-To-Date Scrip
  5135.  
  5136.         Reply to:   RE>Re: NOW Up-To-Date Scriptin
  5137. > >Has anyone had any success with scripting NOW Up-To-Date,
  5138. >
  5139. > There's a whole set of example scripts (8 total) on AppleLink to do NUD
  5140. > 2.1 scripting.  Here's the path:
  5141. >
  5142. > Developer Support: AppleScript Talk: Script Exchange
  5143. >
  5144. > I have them and can forward if you need them.  They all conform to the
  5145. > Schedule Suite (also on AppleLink: Developer Support: System 7 Talk:
  5146. > Apple Events Discussion: Apple Events Suite Development: Schedule Suite
  5147. > 1.0'1)
  5148.  
  5149. Actually would it be possible to have them posted on gaea? NUD is pretty
  5150. popular and it would be easier than mailing them to folks. I would be most
  5151. interested in getting a copy any which way; they sound like just the thing for
  5152. a project I'm working on.
  5153.  
  5154. Mark Stewart
  5155. BIAD-Research Imaging Center
  5156. UTHSCSA
  5157. stewart@uthscsa.edu
  5158. =========================================================================
  5159. Date:         Mon, 21 Mar 1994 16:14:32 +0100
  5160. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5161. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5162. From:         Trude Olsen <TRUDEO@DHHALDEN.NO>
  5163. Organization: Ostfold College
  5164. Subject:      Developer Support: AppleScript Talk: Script Exchange
  5165.  
  5166. Can you forward them to me??
  5167.  
  5168. Trude
  5169.  
  5170.  
  5171.                    __  _-==-=_,-.
  5172.                   /--`' \_@-@.--<       Trude Olsen
  5173.                   `--'\ \   <___/.      Dyrendalsvn 13
  5174.                        \ \\   " /       1778  HALDEN
  5175.  >=\\_/`<
  5176.            ____       /= |  \_|/        tlf: 69 18 33 26
  5177.          _'    `\   _/=== \___/
  5178.           -_ __/ //\./=/~\====\
  5179.                \   // /   | ===:
  5180.                 |  ._/_,__|_ ==:        __
  5181.                  \/    \\ \\`--|       / \\
  5182.                   |    _     \\:      /==:-\
  5183.                   `.__' `-____/       |--|==:
  5184.                      \    \ ===\      :==:`-'
  5185.                       _>    \ ===\    /==/
  5186.                      /==\   |  ===\__/--/
  5187.                     <=== \  /  ====\ \\/
  5188.                     _`--  \/  === \/--'
  5189.                    |       \ ==== |
  5190.                     -`------/`--' |
  5191.                             \___-'
  5192. =========================================================================
  5193. Date:         Mon, 21 Mar 1994 09:35:09 U
  5194. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5195. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5196. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  5197. Subject:      Re: Re- MacPPP OSAX under Fr
  5198.  
  5199.         Reply to:   RE>Re: MacPPP OSAX under Front
  5200. >  You'll also find it on gaea.kgs.ukans.edu in
  5201. > /frontier/applets/LoadOSAXDroplet.sit.hqx.
  5202. >
  5203. >
  5204. > pf
  5205.  
  5206. Yeah, that's where I found it. The archive only includes the droplet itself
  5207. without any documentation for how to call osaxen from Frontier. Is it the same
  5208. as calling a UCMD? Does the version on Compuserve include any docs?
  5209.  
  5210. Mark Stewart
  5211. BIAD-Research Imaging Center
  5212. UTHSCSA
  5213. stewart@uthscsa.edu
  5214. =========================================================================
  5215. Date:         Mon, 21 Mar 1994 09:34:14 -0600
  5216. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5217. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5218. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5219. Subject:      Re: Developer Support: AppleScript Talk: Script Exchange
  5220. In-Reply-To:  Your message of "Mon,
  5221.               21 Mar 94 16:14:32 +0100." <9403211527.AA07238@lks.lks.csi.com>
  5222.  
  5223. Hi all,
  5224.  
  5225. David sent them to me, and I'm contacting Now Software to see if I can put
  5226. them on gaea. I'll let you know as soon as they are up.
  5227.  
  5228. > Can you forward them to me??
  5229. >
  5230. > Trude
  5231. >
  5232. Cool sig, Trude. :-{)
  5233.  
  5234. pf
  5235.  
  5236.  
  5237. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5238. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  5239.  
  5240. "Bad spellers of the world, untie!"
  5241.                                         --Graffito
  5242. =========================================================================
  5243. Date:         Mon, 21 Mar 1994 09:45:28 U
  5244. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5245. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5246. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  5247. Subject:      LoadOSAXDroplet docs?
  5248.  
  5249.         Reply to:   LoadOSAXDroplet docs?
  5250. >  You'll also find it on gaea.kgs.ukans.edu in
  5251. > /frontier/applets/LoadOSAXDroplet.sit.hqx.
  5252. >
  5253. >
  5254. > pf
  5255.  
  5256. Yeah, that's where I found it. The archive only includes the droplet itself
  5257. without any documentation for how to call osaxen from Frontier. Is it the same
  5258. as calling a UCMD? Does the version on Compuserve include any docs?
  5259.  
  5260. Mark Stewart
  5261. BIAD-Research Imaging Center
  5262. UTHSCSA
  5263. stewart@uthscsa.edu
  5264. =========================================================================
  5265. Date:         Mon, 21 Mar 1994 10:18:02 -0600
  5266. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5267. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5268. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5269. Subject:      Re: Re- MacPPP OSAX under Fr
  5270. In-Reply-To:  Your message of "Mon,
  5271.               21 Mar 94 09:35:09 +0800." <9403211553.AA07424@lks.lks.csi.com>
  5272.  
  5273. Mark,
  5274.  
  5275. > >  You'll also find it on gaea.kgs.ukans.edu in
  5276. > > /frontier/applets/LoadOSAXDroplet.sit.hqx.
  5277. > >
  5278. > >
  5279. > > pf
  5280. >
  5281. > Yeah, that's where I found it. The archive only includes the droplet itself
  5282. > without any documentation for how to call osaxen from Frontier. Is it the same
  5283. > as calling a UCMD? Does the version on Compuserve include any docs?
  5284. >
  5285.  
  5286. No, it didn't (that version came straight from CI$). I'll get the
  5287. description of the file and send it to you. As I remember it, you just drop
  5288. the osax on it and the droplet creates a verb set for the osax in Frontier.
  5289. But I'll admit that it's been quite a while since I played with it. Anyone
  5290. else wanna comment?
  5291.  
  5292. pf
  5293. =========================================================================
  5294. Date:         Mon, 21 Mar 1994 08:28:56 -0800
  5295. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5296. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5297. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5298. Subject:      Re: Re- MacPPP OSAX under Fr
  5299.  
  5300. [Referring to the LoadOSAX droplet for Frontier]:
  5301.  
  5302. >Yeah, that's where I found it. The archive only includes the droplet itself
  5303. >without any documentation for how to call osaxen from Frontier. Is it the same
  5304. >as calling a UCMD? Does the version on Compuserve include any docs?
  5305.  
  5306. The droplet loads the osax's code into the Frontier database, and builds a
  5307. script or scripts which send the various events defined in the Addition's
  5308. 'aete' resource.  For example, the "beep" Addition (not very interesting)
  5309. produces a table at system.extensions.Beep.  The table has three items:
  5310.  
  5311.     beep      a script, reading
  5312.        on beep (n)  << Beep 1 or more times.
  5313.            return (appleEvent (@Beep.code.AEVTsysobeep, 'syso', 'beep',\
  5314.                '----', long(n)))
  5315.  
  5316.     code      a table, containing one item the binary object (typed as a UCMD,
  5317. since functional Scripting Additions and Frontier UCMDs are the same [in
  5318. many cases, the same source code can be used for either...exceptions being
  5319. those which require resources].
  5320.  
  5321.     objectHeirarchy   an outline (empty for Beep) which is a result of the
  5322. new 'aete' parser.  If the Addition defines a class in which to return its
  5323. data, that should show up here.  I think.
  5324.  
  5325.     --John
  5326.  
  5327. --
  5328. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5329.    "This is the network of our disconnect"
  5330. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  5331. =========================================================================
  5332. Date:         Mon, 21 Mar 1994 10:37:36 -0600
  5333. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5334. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5335. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5336. Subject:      content space in scriptable Finder
  5337.  
  5338. Does anyone know how to use the content space property in the scriptable
  5339. Finder? The description sounds like it allows selections in multiple windows,
  5340. but I can't get it to work. I'm using scriptable Finder 1.1f2.
  5341.  
  5342. pf
  5343.  
  5344.  
  5345. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5346. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  5347.  
  5348. "Bad spellers of the world, untie!"
  5349.                                         --Graffito
  5350. =========================================================================
  5351. Date:         Mon, 21 Mar 1994 07:53:18 PDT
  5352. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5353. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5354. From:         network_manager@ALDUS.COM
  5355. Organization: Aldus Corporation, Seattle, WA
  5356. Subject:      NDN:LoadOSAXDroplet docs?
  5357.  
  5358. Your mail to the Microsoft Mail Server could not be fully
  5359. delivered!   Reasons listed below!   It has been deleted.
  5360. =========================================================================
  5361. Date:         Mon, 21 Mar 1994 11:42:44 -0500
  5362. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5363. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5364. From:         Steve Alex <steve_alex@POSTOFFICE.AIDT.EDU>
  5365. Subject:      Re> MACSCRPT Digest - 18 Mar 1994 to 19 Mar 1994
  5366.  
  5367. I've done quit a bit of scripting in Now Up-To-Date, at least to the limited
  5368. support that they provide. You can do just about everything from AS. Someone
  5369. has already told you about the example scripts from the Now folks. The Main
  5370. thing to remember is that NUD documents (highest level) contain "calendars"
  5371. (which is really the "category"), Calendars contain "events", events have the
  5372. details, but also can have repeating items such as "Timeblocks". Descriptions
  5373. may or may not be there and will cause some problems that you will probably
  5374. have to use error trapping to get around.
  5375.  
  5376. I've developed a Frontmost application that looks at all the public servers
  5377. (by means of an open NUD application on a server that has all "calendars"
  5378. open) and posts the current status (in/out stuff) to a tableserver database.
  5379. If the NUD examples don't help you, I can send you more. The only real
  5380. problem I've found is implementation of the "whose" clause that is a little
  5381. strange. You can ask for all the events from a certain calendar and you can
  5382. ask for all the events between two dates (using the weird whose clause in
  5383. example 5), but you can't combine the statements and ask for all events from
  5384. a specific calendar between two dates. You'll also have a lot of fun with
  5385. dates!
  5386.  
  5387. Good luck.
  5388. Steve
  5389.  
  5390. +---------------------------------------+----------------------------------+
  5391. | --------------+ Steve Alex            | All ideas here are my own and    |
  5392. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  5393. |   | ----------+ Development Training  |                  alex@aidt.edu |
  5394. |   +---------------------------------- |                                  |
  5395. +---------------------------------------+----------------------------------+
  5396. =========================================================================
  5397. Date:         Mon, 21 Mar 1994 12:18:15 -0600
  5398. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5399. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5400. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5401. Subject:      NOW UPD scripts
  5402.  
  5403. Everyone,
  5404.  
  5405. Now Software gave me the go ahead to post their sample scripts to gaea. You'll
  5406. find them in
  5407.  
  5408. gaea.kgs.ukans.edu//applescript/scripts/NUDScheduleSuite.hqx
  5409. gaea.kgs.ukans.edu//applescript/scripts/NUDSamples.hqx
  5410.  
  5411. Enjoy.
  5412.  
  5413. pf
  5414.  
  5415.  
  5416. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5417. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  5418.  
  5419. "Bad spellers of the world, untie!"
  5420.                                         --Graffito
  5421. =========================================================================
  5422. Date:         Mon, 21 Mar 1994 18:58:35 GMT
  5423. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5424. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5425. From:         Salih <msalih@CLUS1.ULCC.AC.UK>
  5426. Subject:      Error type 1
  5427.  
  5428. Help
  5429. I am statrting appleScript from zero.
  5430. I have installed Apple script and started practicing using "The Tao of Apple
  5431.  Script".
  5432.  
  5433. When I write the following command"
  5434.  
  5435. "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
  5436.  
  5437. I have a crash  with the message "
  5438. " Application "Unkown" has unexpectedly quit because of type 1 error occured"
  5439.  
  5440. This case does happen when I quit Apple Script  and then try to reopen it and
  5441.  issue the above command ...
  5442. In every time I have to RESTART  in order to run the above command ...
  5443. What have I done wrong ?!!
  5444.  
  5445.  
  5446. --
  5447. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  5448. | Muaadh Salih                  Tel (UK) :      071 323 6226   |
  5449. |                                                              |
  5450. | Department of the Languages   Fax (UK) :      071 436 3844   |
  5451. | and the Cultures of the Near                                 |
  5452. | and Middle East                                              |
  5453. |                                                              |
  5454. | School of Oriental and  African Studies                      |
  5455. | University of London      Internet: msalih@clus1.ulcc.ac.uk  |
  5456. | Thornhaugh Street                                            |
  5457. | London WC1H OXG                                              |
  5458. |==============================================================
  5459. =========================================================================
  5460. Date:         Mon, 21 Mar 1994 13:41:16 -0800
  5461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5463. From:         David Ray <daver@NETCOM.COM>
  5464. Subject:      Re: Error type 1
  5465.  
  5466. Salih <msalih@CLUS1.ULCC.AC.UK> wrote:
  5467.  
  5468. >"Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
  5469. >
  5470. >I have a crash  with the message:
  5471. >" Application "Unkown" has unexpectedly quit because of type 1 error occured"
  5472. >
  5473. >This case does happen when I quit Apple Script  and then try to reopen it and
  5474. > issue the above command ...
  5475.  
  5476. I think you mean, whenever you try to run the Script Editor again, it crashes.
  5477.  
  5478. >In every time I have to RESTART  in order to run the above command ...
  5479. >What have I done wrong ?!!
  5480.  
  5481. If the Script Editor crashes, it is normal for it not to work again
  5482. until you restart the machine.
  5483.  
  5484. It is not normal for the Script Editor to crash. Some possible reasons could be:
  5485.  
  5486. 1) You don't have all the parts of AppleScript installed. For system 7.0 you
  5487.    need AppleScript, Apple Event manager, and Quicktime. For system 7.1, you
  5488.    need AppleScript and Apple Event manager
  5489.  
  5490. 2) There could be an init conflict. Try turning off other extentions and
  5491.    control panels
  5492.  
  5493. 3) The memory allocated for Script Editor could be too small. Try allocating
  5494.    more memory from the "Get Info" box.
  5495.  
  5496. 4) The system might become corrupted by running apps that aren't very
  5497.    system 7 savvy. Try rebooting, then run the Script Editor without
  5498.    anything else before it.
  5499.  
  5500. 5) The computer may crash if it is very close to being out of RAM memory.
  5501.    Check the available memory from the "About this Macintosh" dialog.
  5502.    You should have at least 200k margin or you might run into problems.
  5503.  
  5504. Also, I would recommend trying to send commands from the Script Editor one
  5505. line at a time until you find which line is causing the problem. For example,
  5506. I woulf first try:
  5507.  
  5508. Tell app "Scriptable Text Editor"
  5509. activate
  5510. end tell
  5511.  
  5512. If that works, then start adding to it, one line at a time, and run it
  5513. each time:
  5514.  
  5515. Tell app "Scriptable Text Editor"
  5516. activate
  5517. make window 1
  5518.   tell window 1
  5519.   set contents to "XYZ"
  5520.   end tell
  5521. save window 1 as text
  5522. quit
  5523. end tell
  5524.  
  5525.  
  5526. -Dave
  5527. daver@netcom.com
  5528. =========================================================================
  5529. Date:         Sun, 13 Mar 1994 23:36:36 -0800
  5530. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5531. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5532. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5533. Subject:      Re: PhotoFlash
  5534.  
  5535. >>I believe
  5536. >>that PhotoFlash from Apple did implement menu sharing, so I hope
  5537. >>this indicates some level of corporate commitment for UserLand's
  5538. >>product.
  5539. >>
  5540. >        That was because Apple bought PhotoFlash from a Userland savvy
  5541. >company.
  5542.  
  5543. Come on Leonard, give us a plug at least.  ;)
  5544.  
  5545. PhotoFlash was written by Storm Technology (of which I am an employee and
  5546. co-author of PhotoFlash) of Mountain View, CA.  Apple co-developed
  5547. PhotoFlash, which basically means that we wrote it and they are marketing
  5548. it.  They bought it because they liked the scriptability and were looking
  5549. for an photo manipulation program for their new QuickTake digital camera.
  5550.  
  5551. PhotoFlash itself is a scriptable photo-publishing program.  It doesn't
  5552. have editing capabilities, but it has everything you need to tweak photos,
  5553. including sharpen, blur, resize, crop, rotate, contrast, and more.  It runs
  5554. PhotoShop plugins and is VERY fast.  It launches quick and uses a very
  5555. flexible and speedy VM scheme so that it flies.
  5556.  
  5557. In addition, I've written some osaxen to control the QuickTake camera.
  5558. These will ship with the PowerPC version of PhotoFlash sometime "soon".
  5559. They allow you to download pictures, mount the camera on the desktop (like
  5560. a disk drive), take pictures and interogate the camera about its status.
  5561. It's pretty cool stuff!
  5562.  
  5563. As for menu sharing, we implemented it and Apple didn't make us take it out.  ;)
  5564.  
  5565. Jon
  5566.  
  5567. PS
  5568.  
  5569. It is my understanding that because Hypercard is written in Pascal and
  5570. Assembly, it cannot be ported to the PowerPC at this time.  Perhaps once a
  5571. Pascal compiler becomes available or it becomes worthwhile to convert the
  5572. executable code directly, we will see a native version.  Until then I doubt
  5573. it will occur.
  5574. =========================================================================
  5575. Date:         Mon, 21 Mar 1994 16:55:56 -0500
  5576. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5577. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5578. From:         David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
  5579. Subject:      applet to applet
  5580.  
  5581. Does any one know the correct way to send a custom event from
  5582. one applet to another?
  5583.  
  5584. Thanks,
  5585. David
  5586.  
  5587. David Weingarten
  5588. Emory University - Chemistry
  5589. dweinga@emoryu1.cc.emory.edu
  5590. AOL - Chemdw
  5591. =========================================================================
  5592. Date:         Mon, 21 Mar 1994 15:21:29 -0800
  5593. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5594. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5595. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  5596. Subject:      Frontmost saving variables (Q)
  5597.  
  5598. I am working on creating a simple mail parser that reads mail, counts the
  5599. messages that come in, replies to each message and deletes the original.
  5600.  
  5601. I have a droplet running that does this but it resets the count or doesn't
  5602. save the count when it dies. I'd like to save the count so that if the
  5603. processor dies and I restart it, the count will continue.
  5604.  
  5605. I have tried saving the window in Frontmost after altering the text in a
  5606. textbox but that doesn't ride through a quit and restart. I don't want to
  5607. save to a text file and then read the text file each time I restart but I'm
  5608. beginning to think that is the only way to save data in a Frontmost
  5609. application.
  5610.  
  5611. Sure do like HyperCard for saving data in fields and retaining the
  5612. information. Any suggestions for Frontmost? I am trying to protect against
  5613. losing the count when the application crashes.
  5614.  
  5615. Kee Nethery
  5616.  
  5617. _________________________________________________________________
  5618. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  5619. =========================================================================
  5620. Date:         Mon, 21 Mar 1994 21:05:57 -0800
  5621. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5622. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5623. From:         "Allan R. Crump" <jhhw@CRL.COM>
  5624. Subject:      Re: Frontmost saving variables (Q)
  5625. In-Reply-To:  <199403212323.AA00298@mail.crl.com>
  5626.  
  5627. Try using a "Property".  Either book 'Tao of Applescript' or 'The
  5628. Complete AppleScript book' describes properties in detail.  By using an
  5629. item as a property (or counter), it behaves in much the way that a
  5630. hypercard field works, retaining the value every time that the program is
  5631. launched.
  5632.  
  5633. You can control it dynamically in the program as well.
  5634. Allan
  5635. =========================================================================
  5636. Date:         Mon, 21 Mar 1994 21:11:40 -0800
  5637. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5638. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5639. From:         David Ray <daver@NETCOM.COM>
  5640. Subject:      InterSLIP / AE problem?
  5641.  
  5642. I have written a simple autodialer for InterSLIP using the scriptable app
  5643. InterSLIP/AE. The script is an 'aplet' (saved as a stay-open application
  5644. with Script Editor) that uses the on idle - end idle.
  5645.  
  5646. The script runs fine, except that the line that tells InterSLIP / AE to quit
  5647. causes InterSLIP to crash. If I leave InterSLIP / AE running after the
  5648. connection is made and the droplet quits, everything is fine.
  5649.  
  5650. Has anyone else had this problem?
  5651.  
  5652. -Dave Ray
  5653. daver@netcom.com
  5654.  
  5655. Here is the script for the applet. It launches InterSLIP Setup, selects the
  5656. 'connect' button (using the Autotype osax), then checks post status every
  5657. 2 seconds. If a connection is made, the program quits. If the port is idle,
  5658. the program selects the connect button again. It assumes that the reason
  5659. it didn't connect is because it is busy (it doesn't actually check this.)
  5660. It just keeps trying until the connection is made.
  5661.  
  5662.  
  5663.  
  5664. global i
  5665. set i to 1
  5666. on idle
  5667.   if i = 1 then
  5668.     tell application "Finder Liaison 1.1"
  5669.       Open (a reference to File "Mac:Comm:TCP Tools:InterSLIP Setup")
  5670.       quit
  5671.     end tell
  5672.     set i to i + 1
  5673.   else if i = 2 then
  5674.     tell application "InterSLIP/AE" to set status to (Get Status ID)
  5675.       if status = 0 then
  5676.         AutoType "m" holding "control"
  5677.       else if status = 4 then
  5678.         --(The following line causes InterSLIP to crash)
  5679.         --tell application "InterSLIP/AE" to quit
  5680.         quit
  5681.       end if
  5682.     end tell
  5683.   end if
  5684.   return 2
  5685. end idle
  5686. =========================================================================
  5687. Date:         Mon, 21 Mar 1994 21:48:09 -0800
  5688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5690. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5691. Subject:      Re: Native Hypercard
  5692.  
  5693. I was stupid enough to say:
  5694. >It is my understanding that because Hypercard is written in Pascal and
  5695. >Assembly, it cannot be ported to the PowerPC at this time.  Perhaps once a
  5696. >Pascal compiler becomes available or it becomes worthwhile to convert the
  5697. >executable code directly, we will see a native version.  Until then I doubt
  5698. >it will occur.
  5699.  
  5700. Of course, as soon as I make a decidedly obvious statement like this, I
  5701. hear from the rumor mill about the possibility that Hypercard will be
  5702. ported to C in order to compile it native.  As another friend points out,
  5703. if that happens it might take longer than the appearance of the Metroworks
  5704. Pascal compiler.  So there is hope for a native Hypercard, just don't hold
  5705. your breath.  ;)
  5706.  
  5707. Jon
  5708. =========================================================================
  5709. Date:         Mon, 21 Mar 1994 21:48:17 -0800
  5710. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5711. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5712. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5713. Subject:      Re: Saving data in FrontMost
  5714.  
  5715. >Sure do like HyperCard for saving data in fields and retaining the
  5716. >information. Any suggestions for Frontmost? I am trying to protect against
  5717. >losing the count when the application crashes.
  5718.  
  5719. You might try storing data in a script property.  If you have a script you
  5720. are running, it should save itself when it quits, so you can store the
  5721. property in there.  The trouble with this is that the property gets reset
  5722. when you recompile.  So, I recommend this:
  5723.  
  5724. Script 1:
  5725.  
  5726. property foo : ""
  5727.  
  5728. Save this as a compiled script named Foo.  Don't ever recompile it.
  5729.  
  5730. Script 2:
  5731.  
  5732. set x to load script file "Foo"
  5733. set oldData to x's foo   -- or
  5734. set oldData to foo of x  -- either one works
  5735. set x's foo to newData  -- foo of x works too
  5736. store script x in file "Foo" replacing yes
  5737.  
  5738. Get the idea?
  5739.  
  5740. Jon
  5741. =========================================================================
  5742. Date:         Tue, 22 Mar 1994 00:54:41 -0800
  5743. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5744. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5745. From:         Jon Pugh <jonpugh@NETCOM.COM>
  5746. Subject:      Error Messages
  5747.  
  5748. If you get a rejected posting message when you submit something to the
  5749. list, you need to update your addresses.  These are the ones everyone
  5750. should be using. It took me a couple of messages to realize that I was not
  5751. doing something wrong.  I suspect that the old address is forwarding
  5752. messages twice somehow.
  5753.  
  5754. Andy Williams, who must take a fair about of grief about his name, recently
  5755. posted these but without the caveat that they are different and should be
  5756. used immediately by everyone.
  5757.  
  5758. * LISTSERV@dartmouth.edu
  5759.     the master controller. Mail is handled by computer
  5760.     so you have a limited set of commands you can send it.
  5761.     (Sending the HELP command will get you basics on this
  5762.     including instructions on how to sign off the list and
  5763.     set basic options for yourself like whether you want to
  5764.     receive the list in digest format or not)
  5765.  
  5766. * MacScripting-Request@dartmouth.edu
  5767.     Fred Terry and Andy J. Williams, the list administrators.
  5768.     We can be contacted when you have a problem with the LISTSERV
  5769.     program above or when you have any administrative questions.
  5770.  
  5771. * MacScripting@dartmouth.edu
  5772.     the distribution list. Mail sent here goes to
  5773.     all the recipients.
  5774.  
  5775. Thanks and sorry for the repetition.
  5776.  
  5777. Jon
  5778. =========================================================================
  5779. Date:         Tue, 22 Mar 1994 10:51:38 GMT
  5780. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5781. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5782. From:         Salih <msalih@CLUS1.ULCC.AC.UK>
  5783.  
  5784. Help
  5785. I am statrting appleScript from zero.
  5786. I have installed Apple script and started practicing using "The Tao of Apple
  5787.  Script".
  5788.  
  5789. When I wrote the following command"
  5790.  
  5791. "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
  5792.  
  5793. I have a crash  with the message "
  5794. " Application "Unkown" has unexpectedly quit because of type 1 error occured"
  5795.  
  5796. This case does happen when I quit Apple Script  and then try to reopen it and
  5797.  issue the above command ...
  5798. In every time I have to RESTART  in order to run the above command ...
  5799. What have I done wrong ?!!
  5800.  
  5801.  
  5802. --
  5803. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  5804. | Muaadh Salih                  Tel (UK) :      071 323 6226   |
  5805. |                                                              |
  5806. | Department of the Languages   Fax (UK) :      071 436 3844   |
  5807. | and the Cultures of the Near                                 |
  5808. | and Middle East                                              |
  5809. |                                                              |
  5810. | School of Oriental and  African Studies                      |
  5811. | University of London      Internet: msalih@clus1.ulcc.ac.uk  |
  5812. | Thornhaugh Street                                            |
  5813. | London WC1H OXG                                              |
  5814. |==============================================================
  5815. =========================================================================
  5816. Date:         Tue, 22 Mar 1994 11:03:14 GMT
  5817. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5818. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5819. From:         Salih <msalih@CLUS1.ULCC.AC.UK>
  5820. Subject:      Error type1 and headache
  5821.  
  5822. Help
  5823. I am statrting appleScript from zero.
  5824. I have installed Apple script and started practicing using "The Tao of Apple
  5825.  Script".
  5826.  
  5827. When I wrote the following command"
  5828.  
  5829. "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
  5830.  
  5831. I have a crash  with the message "
  5832. " Application "Unkown" has unexpectedly quit because of type 1 error occured"
  5833.  
  5834. This case does happen when I quit Apple Script  and then try to reopen it and
  5835.  issue the above command ...
  5836. In every time I have to RESTART  in order to run the above command ...
  5837. What have I done wrong ?!!
  5838.  
  5839. --
  5840. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  5841. | Muaadh Salih                  Tel (UK) :      071 323 6226   |
  5842. |                                                              |
  5843. | Department of the Languages   Fax (UK) :      071 436 3844   |
  5844. | and the Cultures of the Near                                 |
  5845. | and Middle East                                              |
  5846. |                                                              |
  5847. | School of Oriental and  African Studies                      |
  5848. | University of London      Internet: msalih@clus1.ulcc.ac.uk  |
  5849. | Thornhaugh Street                                            |
  5850. | London WC1H OXG                                              |
  5851. |==============================================================
  5852. =========================================================================
  5853. Date:         Tue, 22 Mar 1994 09:18:09 -0500
  5854. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5855. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5856. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  5857. Subject:      Re: Frontmost saving variables (Q)
  5858.  
  5859. I don't know if there is something different about Frontmost, or if you
  5860. don't know about properties....  If it's the former, I can't help!  :)  If
  5861. it's the latter, then try using a property.  A property retains it's value
  5862. after the script quits.
  5863.  
  5864. Steve
  5865.  
  5866. ---------------------
  5867.  jonke@gsfc.nasa.gov
  5868. ---------------------
  5869. =========================================================================
  5870. Date:         Tue, 22 Mar 1994 09:29:15 -0800
  5871. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5872. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5873. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  5874. Subject:      Re: InterSLIP / AE problem?
  5875.  
  5876. >I have written a simple autodialer for InterSLIP using the scriptable app
  5877. >InterSLIP/AE. The script is an 'aplet' (saved as a stay-open application
  5878. >with Script Editor) that uses the on idle - end idle.
  5879. >
  5880.         Cool!!
  5881.  
  5882. >The script runs fine, except that the line that tells InterSLIP / AE to quit
  5883. >causes InterSLIP to crash. If I leave InterSLIP / AE running after the
  5884. >connection is made and the droplet quits, everything is fine.
  5885. >
  5886.         Yah, I know about it.  It's a bug in IS/AE :(.
  5887.  
  5888. Leonard
  5889.  
  5890. -----------------------------------------------------------------------------
  5891. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  5892. Director of Advanced Technology         AppleLink:      MACgician
  5893. Aladdin Systems, Inc.                   GEnie:          MACgician
  5894. =========================================================================
  5895. Date:         Tue, 22 Mar 1994 16:10:03 -0500
  5896. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5897. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5898. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  5899. Subject:      Scriptable Telnet application?
  5900.  
  5901. Does anyone know if there is a scriptable Telnet program available for the
  5902. Mac?  NCSA Telnet doesn't support AppleEvents, but what about commercial
  5903. Telnet products (do they even exist?)
  5904.  
  5905. Steve
  5906.  
  5907. ---------------------
  5908.  jonke@gsfc.nasa.gov
  5909. ---------------------
  5910. =========================================================================
  5911. Date:         Tue, 22 Mar 1994 17:00:51 -0500
  5912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5914. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  5915. Subject:      Anarchie question....
  5916.  
  5917.     Why does Anarchie tell me that it doesn't understand the "quit"
  5918. event, when it is listed in it's aete resource? It will let me do other
  5919. stuff, but it won't take a simple "tell app "Anarchie" to quit"
  5920. AppleScript statement. Thanks.
  5921.  
  5922. -Hades
  5923. =========================================================================
  5924. Date:         Tue, 22 Mar 1994 16:05:40 -0500
  5925. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5926. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5927. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  5928. Subject:      Re> Scriptable Telnet application?
  5929.  
  5930. Here's the best solution I've thought of (although I haven't done it yet):
  5931. SitCOMM from Alladin. I've got VersaTerm, so I have the VersaTerm Telnet Tool
  5932. for the comm toolbox. You _should_ be able to script SitCOMM to do stuff
  5933. using this tool. Again, I haven't tried it yet (I'm waiting on SitCOMM). I
  5934. don't know of any free Telnet tools for the comm toolbox, though.
  5935.  
  5936. Jay
  5937. +---------------------------------------+----------------------------------+
  5938. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  5939. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  5940. |   | ----------+ Development Training  |                  martin@aidt.edu |
  5941. |   +---------------------------------- |                                  |
  5942. +---------------------------------------+----------------------------------+
  5943.  
  5944.  ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
  5945.  
  5946. Does anyone know if there is a scriptable Telnet program available for the
  5947. Mac?  NCSA Telnet doesn't support AppleEvents, but what about commercial
  5948. Telnet products (do they even exist?)
  5949. =========================================================================
  5950. Date:         Tue, 22 Mar 1994 16:12:24 -0500
  5951. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5952. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5953. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  5954. Subject:      Re> Anarchie question....
  5955.  
  5956. It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
  5957. the other?
  5958.  
  5959. Jay
  5960. +---------------------------------------+----------------------------------+
  5961. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  5962. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  5963. |   | ----------+ Development Training  |                  martin@aidt.edu |
  5964. |   +---------------------------------- | (But what do they know?)         |
  5965. +---------------------------------------+----------------------------------+
  5966.  
  5967.  ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
  5968.  
  5969.     Why does Anarchie tell me that it doesn't understand the "quit"
  5970. event, when it is listed in it's aete resource? It will let me do other
  5971. stuff, but it won't take a simple "tell app "Anarchie" to quit"
  5972. AppleScript statement. Thanks.
  5973. =========================================================================
  5974. Date:         Tue, 22 Mar 1994 17:16:42 -0500
  5975. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5976. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5977. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  5978. Subject:      Re: Scriptable Telnet application?
  5979.  
  5980. >Does anyone know if there is a scriptable Telnet program available for the
  5981. >Mac?  NCSA Telnet doesn't support AppleEvents, but what about commercial
  5982. >Telnet products (do they even exist?)
  5983. >
  5984. >Steve
  5985. >
  5986. >---------------------
  5987. > jonke@gsfc.nasa.gov
  5988. >---------------------
  5989.  
  5990. I've been using SITcomm with the TGE TCPtool.  It allows me to open up a
  5991. transparent connection to any port on any machine on the net (i.e., not
  5992. just telnet protocol).  I have an entry in SITcomm's address book which
  5993. specifies one particular machine and port--I haven't tried changing those
  5994. parameters on the fly with AppleScript yet.
  5995.  
  5996.                                 -Steve.
  5997.  
  5998. +--------------------------------------------------------------+
  5999. | Steven L. Rohall                                             |
  6000. |                            ________ _        ______  ______  |
  6001. | 55 Walkers Brook Drive        /    / \      /     / /     /  |
  6002. | Reading, MA 01867-3297       /    /___\    /______ /         |
  6003. | Tel: (617)942-2000          /    /     \         //          |
  6004. | Fax: (617)942-7100         /    /       \/______//______/    |
  6005. | slrohall@tasc.com                                            |
  6006. | (MIME-conformant mail welcome.)                              |
  6007. +--------------------------------------------------------------+
  6008. =========================================================================
  6009. Date:         Tue, 22 Mar 1994 17:20:10 -0500
  6010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6012. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6013. Subject:      Re: Re> Anarchie question....
  6014. In-Reply-To:  <no.id> from "Jay Martin" at Mar 22, 94 04:12:24 pm
  6015.  
  6016. --Jay Martin wrote:
  6017. >
  6018. >It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
  6019. >the other?
  6020.  
  6021.     Nope, I have AS 1.1 and Anarchie 1.1.3. It says Application
  6022. "Anarchie" doesn't understand the quit message.
  6023.  
  6024. -Hades
  6025. =========================================================================
  6026. Date:         Tue, 22 Mar 1994 16:36:00 -0500
  6027. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6028. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6029. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  6030. Subject:      Re> Re: Re> Anarchie question....
  6031.  
  6032. Hmmm...did you try just that line? I tried the following script just as a
  6033. test and it worked:
  6034.  
  6035. tell application "Anarchie" to activate
  6036. tell application "Anarchie" to quit
  6037. tell application "Anarchie"
  6038.         activate
  6039.         quit
  6040. end tell
  6041.  
  6042. If there's nothing else in the script, then I have no idea. Anyone else?
  6043.  
  6044. Jay
  6045. +---------------------------------------+----------------------------------+
  6046. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  6047. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  6048. |   | ----------+ Development Training  |                  martin@aidt.edu |
  6049. |   +---------------------------------- | (But what do they know?)         |
  6050. +---------------------------------------+----------------------------------+
  6051.  
  6052.  ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
  6053.  
  6054.     Nope, I have AS 1.1 and Anarchie 1.1.3. It says Application
  6055. "Anarchie" doesn't understand the quit message.
  6056. =========================================================================
  6057. Date:         Tue, 22 Mar 1994 17:40:44 -0500
  6058. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6059. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6060. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6061. Subject:      Re: Re> Re: Re> Anarchie question....
  6062. In-Reply-To:  <no.id> from "Jay Martin" at Mar 22, 94 04:36:00 pm
  6063.  
  6064. --Jay Martin wrote:
  6065. >
  6066. >Hmmm...did you try just that line? I tried the following script just as a
  6067. >test and it worked:
  6068. >
  6069. >tell application "Anarchie" to activate
  6070. >tell application "Anarchie" to quit
  6071. >tell application "Anarchie"
  6072. >        activate
  6073. >        quit
  6074. >end tell
  6075.  
  6076.     The activate command works just fine, it's the quit command that
  6077. gives the error. I'll try re-installing my copy of Anarchie to see if
  6078. that makes any difference. Thanks...
  6079.  
  6080. -Hades
  6081. =========================================================================
  6082. Date:         Tue, 22 Mar 1994 15:03:19 -0800
  6083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6085. From:         Jerry Wilcox <Jerry.Wilcox@UCOP.EDU>
  6086. Subject:      Re: Re> Re: Re> Anarchie question....
  6087.  
  6088. >Hmmm...did you try just that line? I tried the following script just as a
  6089. >test and it worked:
  6090. >
  6091. >tell application "Anarchie" to activate
  6092. >tell application "Anarchie" to quit
  6093. >tell application "Anarchie"
  6094. >        activate
  6095. >        quit
  6096. >end tell
  6097. >
  6098.  
  6099. As a datapoint, this script doesn't work for me -- I also get the message
  6100. that Application Anarchie doesn't understand the quit message. Using
  6101. Anarchie 1.1.3 and AS 1.1.
  6102.  
  6103. Jerry
  6104.  
  6105. -----
  6106. Jerry Wilcox - Jerry.Wilcox@ucop.edu
  6107. All opinions are mine alone - the University can speak for itself.
  6108. =========================================================================
  6109. Date:         Tue, 22 Mar 1994 17:14:37 -0600
  6110. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6111. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6112. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6113. Subject:      Now Up to Date scripts
  6114.  
  6115. In a message dated: Tue, 22 Mar 94 15:03:26 PST, Jeff Fischer sez
  6116. >Fred:
  6117. >
  6118. >Thanks for posting the NUD scripts at gaea. Thought I'd mention (as
  6119. >perhaps others have as well) that the Schedule Suite file is named
  6120. >'ScheduleSuite.hqx', but you referred to it in the MACSCRPT mailing list
  6121. >as being named 'NUDScheduleSuite.hqx'. I mention it in case you want to
  6122. >either rename it or post a clarification to the list.
  6123. >
  6124.  
  6125. Yup. Just so's everyone knows the real name is now ScheduleSuite.hqx. I made
  6126. the change yesterday afternoon when I was told that Jim Kaslik of Chenna wrote
  6127. the suite. Since it isn't really Now's, I didn't think it appropriate to leave
  6128. the NUD prepended. The file is still in the same directory.
  6129.  
  6130. Thanks for reminding me to inform everyone, Jeff.
  6131.  
  6132. Have a good un; I'm outta here.
  6133.  
  6134. pf
  6135. =========================================================================
  6136. Date:         Tue, 22 Mar 1994 15:48:53 -0800
  6137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6139. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6140. Subject:      Re: Re> Anarchie question....
  6141.  
  6142. Jay Martin says
  6143.  
  6144. >It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
  6145. >the other?
  6146. >
  6147. >
  6148. >> ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
  6149. >>
  6150. >>    Why does Anarchie tell me that it doesn't understand the "quit"
  6151. >>event, when it is listed in it's aete resource? It will let me do other
  6152. >>stuff, but it won't take a simple "tell app "Anarchie" to quit"
  6153. >>AppleScript statement. Thanks.
  6154.  
  6155. Hmmm...Anarchie 1.1.3 rejects the quit event from AppleScript 1.1 for me,
  6156. too.  I had just moved Anarchie from one machine to another
  6157. (8100)...bringing along the Preferences file didn't help...just tried that.
  6158.  
  6159. --John
  6160.  
  6161. --
  6162. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6163.    "This is the network of our disconnect"
  6164. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6165. =========================================================================
  6166. Date:         Tue, 22 Mar 1994 15:53:07 -0800
  6167. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6168. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6169. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6170. Subject:      Re: Re> Re: Re> Anarchie question....
  6171.  
  6172. At 16:36 3/22/94 -0500, Jay Martin wrote:
  6173. >Hmmm...did you try just that line? I tried the following script just as a
  6174. >test and it worked:
  6175. >
  6176. >tell application "Anarchie" to activate
  6177. >tell application "Anarchie" to quit
  6178. >tell application "Anarchie"
  6179. >        activate
  6180. >        quit
  6181. >end tell
  6182. >
  6183. >If there's nothing else in the script, then I have no idea. Anyone else?
  6184.  
  6185.  
  6186. That variation also fails for me, on the quit (probably the first one).
  6187. I'm running with Virtual Memory and the Modern Memory Manager on:  perhaps
  6188. that matters?  Mac 8100.
  6189.    --John
  6190.  
  6191. --
  6192. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6193.    "This is the network of our disconnect"
  6194. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6195. =========================================================================
  6196. Date:         Tue, 22 Mar 1994 16:10:49 -0800
  6197. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6198. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6199. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6200. Subject:      Re: Re> Re: Re> Anarchie question....
  6201.  
  6202. Curiouser and curiouser...
  6203.    Anarchie (1.1.3) was still running after refusing AppleScript's
  6204. instruction to quit.
  6205.  
  6206.    So in Frontier, I executed
  6207.      anarchie.quit ()
  6208. which Anarchie accepted happily and quit.  My mind is looking somewhat
  6209. boggled at the moment.
  6210.  
  6211. [The sequence
  6212.  
  6213.     anarchie.launch()
  6214.     anarchie.quit()
  6215.  
  6216. is also happy.  But Script Editor still can't do it.  Could it be that the
  6217. 'aete' has been damaged, in a copy that is an ancestor of the copies those
  6218. of us for whom it fails have (English teachers please ignore the prior
  6219. mess).  I got mine from Peter's directory on AMUG.]
  6220.  
  6221.    --John
  6222.  
  6223. --
  6224. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6225.    "This is the network of our disconnect"
  6226. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6227. =========================================================================
  6228. Date:         Tue, 22 Mar 1994 20:30:27 +0100
  6229. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6230. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6231. From:         Benno Palmert <palmert@ISYS-HH.HANSE.DE>
  6232. Subject:      nested fileloops and file.move in Frontier 3.0
  6233.  
  6234. What is going wrong:
  6235. I wrote a Frontier 3.0 deskscript with two nested fileloops.
  6236. The fileloop(f in path) is looping through a folder, designed
  6237. to first find a folder, then get its name, go to the inner loop,
  6238. loop through the same folder again to find files,
  6239. beginning with the same characters.
  6240.         The first fileloop should find only folders, get their names
  6241. and then go to the inner loop looking for filenames beginning
  6242. with the same characters. When the script encounters identical names,
  6243. the files are moved (in the inner fileloop) inside the previous
  6244. found folder with the file.move() function.
  6245.  
  6246.         After the first file was moved, and the inner loop
  6247. doesn't find more matches the loop returns to the outer loop,
  6248. and than the outer loop reports an error: "File ... not found!"
  6249. This happens only when using file.move() with file.copy() its working. i
  6250. Apparently the outer loop expects some file, but can't find it because the
  6251. file.move() function changed the list or order of files - perhaps?
  6252.  
  6253. I know, I can use the new list verb in Frontier 3.0 to get
  6254. a list of all folders, and then use only one fileloop.
  6255. But I want to understand why Frontier is reporting this
  6256. error and how I can bypass it.
  6257.  
  6258. thanks,
  6259. Benno Palmert
  6260. palmert@isys-hh.hanse.de
  6261. =========================================================================
  6262. Date:         Tue, 22 Mar 1994 16:46:18 -0800
  6263. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6264. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6265. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  6266. Subject:      Re: Re> Scriptable Telnet application?
  6267.  
  6268. >Here's the best solution I've thought of (although I haven't done it yet):
  6269. >SitCOMM from Alladin. I've got VersaTerm, so I have the VersaTerm Telnet Tool
  6270. >for the comm toolbox. You _should_ be able to script SitCOMM to do stuff
  6271. >using this tool. Again, I haven't tried it yet (I'm waiting on SitCOMM). I
  6272. >don't know of any free Telnet tools for the comm toolbox, though.
  6273. >
  6274.         SITcomm works quite nicely over Telnet (with any of the available
  6275. Telnet tools) so that is indeed your best bet!
  6276.  
  6277. Leonard
  6278.  
  6279. -----------------------------------------------------------------------------
  6280. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  6281. Director of Advanced Technology         AppleLink:      MACgician
  6282. Aladdin Systems, Inc.                   GEnie:          MACgician
  6283. =========================================================================
  6284. Date:         Wed, 23 Mar 1994 09:54:42 +0800
  6285. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6286. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6287. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  6288. Subject:      Re: Anarchie question....
  6289.  
  6290. At  5:00 PM 3/22/94 -0500, Brian V. Hughes wrote:
  6291. >    Why does Anarchie tell me that it doesn't understand the "quit"
  6292. >event, when it is listed in it's aete resource? It will let me do other
  6293. >stuff, but it won't take a simple "tell app "Anarchie" to quit"
  6294. >AppleScript statement. Thanks.
  6295.  
  6296. I know Peter Lewis used to read this list but got scared off by all the
  6297. traffic, so I sent him the question and here is the reply.
  6298.  
  6299. I know the next version is just about ready for release so don't inundate
  6300. him with requests for the beta release.  If it isn't essential for you just
  6301. hang back a week or two and it will be out.  It has nonymous logins :-) (as
  6302. opposed to anonymous ones)
  6303.  
  6304. Craig
  6305.  
  6306. Peter Lewis wrote:
  6307.  
  6308. >>tell application "Anarchie" to quit
  6309.  
  6310. >That variation also fails for me, on the quit (probably the first one).
  6311. >I'm running with Virtual Memory and the Modern Memory Manager on:  perhaps
  6312. >that matters?  Mac 8100.
  6313.  
  6314. It's very simple, it's a bug.  I used core instead of CoRe or vice-versa.
  6315. Anyway, it'll be fixed in the next version (indeed it's fixed in the latest
  6316. version sent to registered users on my beta list).  If you want to try it
  6317. out, mail me (which is generally a better way of finding solutions to
  6318. program-specific problems anyway).
  6319.  
  6320. --
  6321. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  6322. The University of Western Australia      or 380 3860 Email for FAX Number
  6323. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  6324. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  6325. =========================================================================
  6326. Date:         Tue, 22 Mar 1994 21:41:51 EST
  6327. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6328. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6329. From:         "William J. Jamison" <jami1@AOL.COM>
  6330. Subject:      Re: nested fileloops and file.move in Frontier 3.0
  6331.  
  6332. setPath!
  6333. =========================================================================
  6334. Date:         Tue, 22 Mar 1994 21:57:06 U
  6335. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6336. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6337. From:         Penelope Jones <penjones@OTC.FSU.EDU>
  6338. Subject:      Filemaker Pro Over A Networ
  6339.  
  6340. Filemaker Pro Over A Network
  6341. I am interested in using applescript to exchange records between two files
  6342. across a network.  Would someone please share the syntax for opening a database
  6343. across a network.
  6344.  
  6345. ********************************************************************************
  6346. Penelope Jones                             Internet:  penjones@otc.fsu.edu
  6347. Florida State University                   AT&Tnet:   (904) 644-PENY
  6348. Telecommunications, B-72                   FAXnet:    (904) 644-4554
  6349. Tallahassee, FL 32306-2035
  6350.  
  6351. ********************************************************************************
  6352. =========================================================================
  6353. Date:         Tue, 22 Mar 1994 20:27:45 -0800
  6354. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6355. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6356. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6357. Subject:      Re: nested fileloops and file.move in Frontier 3.0
  6358.  
  6359. At 20:30 3/22/94 +0100, Benno Palmert wrote:
  6360.  
  6361. >I wrote a Frontier 3.0 deskscript with two nested fileloops.
  6362. >The fileloop(f in path) is looping through a folder,
  6363.  
  6364. etc.
  6365.  
  6366. I have constructed a script here which behaves as you say.  I don't think
  6367. it should behave that way.  I have put a copy of the script into the
  6368. CompuServe forum, addressed to Doug Baron (same subject you used there).
  6369. Doug should see the messages sometime Wednesday.
  6370.  
  6371. In the meantime, I think the work around would be to make two passes
  6372.    First:  construct a list of files which need to be moved (a two-level
  6373. fileloop nest, which would build the list).
  6374.    Second: a loop which moves each file in the list into the right folder.
  6375.  
  6376.    --John
  6377.  
  6378. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  6379.   UserLand Software support
  6380. =========================================================================
  6381. Date:         Tue, 22 Mar 1994 20:32:34 PST
  6382. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6383. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6384. From:         SteakFace <asmith@PRODIGY.BC.CA>
  6385. Subject:      Two questions in an attempt to script Eudora/MacPPP
  6386.  
  6387. I'm trying to write my first script that will start up MacPPP, dial in,
  6388. establish, start Eudora, check for mail, and then disconnect MacPPP.
  6389.  
  6390. I've run into a problem gettin MacPPP to wait until all the mail has been
  6391. transfered before dropping the link.
  6392.  
  6393. 1. Is there a way to put a "wait" into a script? I can't find a reference to
  6394.    this in The Complete AS Handbook.
  6395.  
  6396. 2. Just how does the "notify" work in the Eudora suite? I found it in the
  6397.    apps dictionary, but haven't sussed it's use yet. Can you check for a
  6398.    "the mail has all arrived" notice? Something linked to the notification
  6399.    that Eudora does itself that can be used to trigger the end of the script.
  6400.  
  6401. Any help appreciated.
  6402.  
  6403. Cheers
  6404. SteakFace
  6405.  
  6406.  
  6407.  
  6408. =================================================================
  6409. SteakFace     graphic designer - media manipulator - bad mood guy
  6410. datapanik                                    asmith@prodigy.bc.ca
  6411. Vancouver, Canada
  6412. =================================================================
  6413. My cat would like to know why it is that we humans are so willing
  6414. to lick each other's genitals, but we won't lick our own.
  6415. =========================================================================
  6416. Date:         Tue, 22 Mar 1994 20:39:17 -0800
  6417. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6418. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6419. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6420. Subject:      Re: Filemaker Pro Over A Networ
  6421.  
  6422. At 21:57 3/22/94 +0000, Penelope Jones wrote:
  6423. >Filemaker Pro Over A Network
  6424. >I am interested in using applescript to exchange records between two files
  6425. >across a network.  Would someone please share the syntax for opening a database
  6426. >across a network.
  6427.  
  6428. Hi...
  6429.    Assuming that the remote volume is already mounted (left as an exercise
  6430. for the reader ;-) ), try something like
  6431.  
  6432. tell application "FileMaker Pro"
  6433.     activate
  6434.     Open file "HD:FileMaker:JWB" of machine "JWB"
  6435. end tell
  6436.  
  6437.  
  6438. You can specify the network zone, if needed:
  6439.    file "HD:FileMaker:JWB" of machine "JWB" of zone "Foo"
  6440.  
  6441. [I finally got one right the first try!]
  6442.    --John
  6443.  
  6444. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  6445.   UserLand Software support
  6446. =========================================================================
  6447. Date:         Wed, 23 Mar 1994 10:13:33 +0100
  6448. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6449. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6450. From:         Ralf Sigmund <nhcdrsig@RRZN-USER.UNI-HANNOVER.DE>
  6451. Subject:      Selecting FileMaker records using AS
  6452.  
  6453. >For medium to large FileMaker databases, search time can become very long
  6454. >Y(I learned how to specifiy timeouts in AppleScript because of that).  If
  6455. >that becomes a problem, try to express the search in a FileMaker
  6456. >script/macro thing, and trigger that from your AppleScript script.  The
  6457. >diference in execution time can be considerable.
  6458. >   --John
  6459. Having a database with 6400  records  the difference in excution speed is 2
  6460. seconds to 8 Minutes....
  6461.  
  6462. How can I tell FMpro for which term in which field I would like to search ?
  6463.  
  6464. Is there something like an internal variable "theSearchItem" in Filemaker pro?
  6465.  
  6466. nhcdrsig@rrzn-user.uni-hannover.de (Ralf Sigmund)
  6467. Tel.: 0511-4584229
  6468. =========================================================================
  6469. Date:         Wed, 23 Mar 1994 07:34:02 -0500
  6470. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6471. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6472. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  6473. Subject:      Re> Re: Anarchie question....
  6474.  
  6475. >Peter Lewis wrote:
  6476.  
  6477. >>>tell application "Anarchie" to quit
  6478.  
  6479. >>That variation also fails for me, on the quit (probably the first one).
  6480. >>I'm running with Virtual Memory and the Modern Memory Manager on:  perhaps
  6481. >>that matters?  Mac 8100.
  6482.  
  6483. >It's very simple, it's a bug.  I used core instead of CoRe or vice-versa.
  6484. >Anyway, it'll be fixed in the next version (indeed it's fixed in the latest
  6485. >version sent to registered users on my beta list).  If you want to try it
  6486. >out, mail me (which is generally a better way of finding solutions to
  6487. >program-specific problems anyway).
  6488.  
  6489. OK. So why does it work for me? I tried it AGAIN this morning, making sure it
  6490. was Anarchie 1.1.3, and it was. And it worked. Can anyone explain? Peter's
  6491. explanation implies that it doesn't work at all, but I swear mine does!
  6492.  
  6493. Jay
  6494. +---------------------------------------+----------------------------------+
  6495. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  6496. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  6497. |   | ----------+ Development Training  |                  martin@aidt.edu |
  6498. |   +---------------------------------- |                                  |
  6499. +---------------------------------------+----------------------------------+
  6500. =========================================================================
  6501. Date:         Wed, 23 Mar 1994 07:38:17 -0500
  6502. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6503. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6504. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  6505. Subject:      Re: Re> Scriptable Telnet application?
  6506.  
  6507. >        SITcomm works quite nicely over Telnet (with any of the available
  6508. >Telnet tools) so that is indeed your best bet!
  6509.  
  6510. Sorry, Leonard, I had the capitalization wrong for SITcomm! Then again, I was
  6511. lucky to spell it right...   ;-)
  6512.  
  6513. Jay
  6514. +---------------------------------------+----------------------------------+
  6515. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  6516. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  6517. |   | ----------+ Development Training  |                  martin@aidt.edu |
  6518. |   +---------------------------------- |                                  |
  6519. +---------------------------------------+----------------------------------+
  6520. =========================================================================
  6521. Date:         Wed, 23 Mar 1994 10:36:25 -0500
  6522. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6523. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6524. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  6525. Subject:      Re: Selecting FileMaker records using AS
  6526.  
  6527. >
  6528. >How can I tell FMpro for which term in which field I would like to search ?
  6529. >
  6530. >Is there something like an internal variable "theSearchItem" in Filemaker pro?
  6531.  
  6532. If you are searching for a specific item in a specific field each time,
  6533. this can be incorporated into the FileMaker script via the ScriptMaker.
  6534. Look in the manuals for details.
  6535.  
  6536. Lee.
  6537.  
  6538. Lee K. Hoong
  6539. Dept. of Chemistry, Emory University
  6540. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  6541. Disclaimer: I speak for myself only, not for Emory University
  6542. =========================================================================
  6543. Date:         Wed, 23 Mar 1994 10:23:52 -0600
  6544. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6545. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6546. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  6547. Subject:      Re: Two questions in an attempt to script Eudora/MacPPP
  6548.  
  6549. >I'm trying to write my first script that will start up MacPPP, dial in,
  6550. >establish, start Eudora, check for mail, and then disconnect MacPPP.
  6551. >
  6552. >I've run into a problem gettin MacPPP to wait until all the mail has been
  6553. >transfered before dropping the link.
  6554. >
  6555. >1. Is there a way to put a "wait" into a script? I can't find a reference t=
  6556. o
  6557. >   this in The Complete AS Handbook.
  6558. >
  6559. >2. Just how does the "notify" work in the Eudora suite? I found it in the
  6560. >   apps dictionary, but haven't sussed it's use yet. Can you check for a
  6561. >   "the mail has all arrived" notice? Something linked to the notification
  6562. >   that Eudora does itself that can be used to trigger the end of the scrip=
  6563. t.
  6564. >
  6565. >Any help appreciated.
  6566. >
  6567. >Cheers
  6568. >SteakFace
  6569.  
  6570. What follows is a sample script for a "Notify" applet that came from the
  6571. list a while ago.  I'm afraid I don't know who originally sent it, so I
  6572. can't give credit where it is due.
  6573.  
  6574.  
  6575. on =ABevent CSOmeNot=BB msgList
  6576.  
  6577. --Respond to notification event here
  6578.  
  6579. end =ABevent CSOmeNot=BB
  6580.  
  6581. -- Below requires the location of the Notify applet, assumed "Hard Disk:Noti=
  6582. fy"
  6583.  
  6584. on run
  6585.    tell application "Eudora"
  6586.       Please Notify alias "Hard Disk:Notify" with Notify
  6587.    end tell
  6588. end run
  6589.  
  6590.  
  6591. on quit
  6592.    tell application "Eudora"
  6593.       Please Notify alias "Hard Disk:Notify" without Notify
  6594.    end tell
  6595.    continue quit
  6596. end quit
  6597.  
  6598.  
  6599. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6600. Tom Donovan           "Perhaps the most universal information trap is the...
  6601. System Administrator   trap of forgetting what it's like not to know. The
  6602. CoVis Project          minute we know something, we forget what it was like
  6603. Northwestern Univ.     not to know it."
  6604.                                                     --Richard S. Wurman
  6605. E-mail: donovan@covis.nwu.edu                    "Information Anxiety"
  6606. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6607. =========================================================================
  6608. Date:         Wed, 23 Mar 1994 08:18:43 -0800
  6609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6611. From:         "Allan R. Crump" <jhhw@CRL.COM>
  6612. Subject:      Modeless Dialog Applescript
  6613.  
  6614. Has anyone out there created an applet or script which can display a
  6615. modeless dialog window ?   I need to finish up a current project which
  6616. will allow the user to either ignore a posted message and click back to
  6617. the desktop or other application, leaving the dialog box showing.  I
  6618. cannot do this with a modal dialog box because it expects to be dismissed
  6619. after displaying itself.
  6620.  
  6621. I would appreciate any suggestions.
  6622. Allan
  6623. =========================================================================
  6624. Date:         Wed, 23 Mar 1994 09:17:49 -0800
  6625. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6626. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6627. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6628. Subject:      Re: Selecting FileMaker records using AS
  6629.  
  6630. At 10:13 3/23/94 +0100, Ralf Sigmund wrote:
  6631. [quoting me]
  6632. >>For medium to large FileMaker databases, search time can become very long
  6633. >>Y(I learned how to specifiy timeouts in AppleScript because of that).  If
  6634. >>that becomes a problem, try to express the search in a FileMaker
  6635. >>script/macro thing, and trigger that from your AppleScript script.  The
  6636. >>diference in execution time can be considerable.
  6637. >>   --John
  6638. >Having a database with 6400  records  the difference in excution speed is 2
  6639. >seconds to 8 Minutes....
  6640. >
  6641. >How can I tell FMpro for which term in which field I would like to search ?
  6642.  
  6643. If the search you need to do is completely different each time, I don't
  6644. have a good idea.  At the other end of the scale, of course, would be one
  6645. of 6 or 7 "canned" searches, each with its own FileMaker macro.
  6646.  
  6647. The middle ground is interesting, and I haven't explored it (my FileMaker
  6648. native scripting experience is very small).  It might be useful to open a
  6649. second database, whose sole function is to carry parameter data from your
  6650. AppleScript or Frontier scripts into FileMaker in a known place where your
  6651. FileMaker scripts can access it.  I haven't explored that idea.
  6652.  
  6653. >Is there something like an internal variable "theSearchItem" in Filemaker pro?
  6654.  
  6655. Not that I know of, sorry to say.
  6656.  
  6657.   --John
  6658.  
  6659. --
  6660. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6661.    "This is the network of our disconnect"
  6662. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6663. =========================================================================
  6664. Date:         Wed, 23 Mar 1994 09:35:25 -0800
  6665. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6666. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6667. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6668. Subject:      Re: Re> Re: Anarchie question....
  6669.  
  6670. >OK. So why does it work for me? I tried it AGAIN this morning, making sure it
  6671. >was Anarchie 1.1.3, and it was. And it worked. Can anyone explain? Peter's
  6672. >explanation implies that it doesn't work at all, but I swear mine does!
  6673.  
  6674. Pure speculation:  you compiled the script in question with an older
  6675. version of Anarchie which had the 'aete' correct, or didn't mention quit
  6676. explicitly at all.
  6677.  
  6678. [Try making a copy (so as not to damage your working one) of the script,
  6679. and recompiling the copy.]
  6680.    --John
  6681.  
  6682. --
  6683. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6684.    "This is the network of our disconnect"
  6685. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6686. =========================================================================
  6687. Date:         Wed, 23 Mar 1994 12:19:17 -0500
  6688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6690. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  6691. Subject:      Re> Re: Re> Re: Anarchie question....
  6692.  
  6693. Nope. Here is the exact script that I typed in:
  6694.  
  6695. tell application "Anarchie" to activate
  6696. tell application "Anarchie" to quit
  6697.  
  6698. I then checked the syntax, and ran the script. Anarchie started up, then
  6699. quit. VERY STRANGE!!!
  6700.  
  6701. BTW, here are the dates for my copy of Anarchie:
  6702.  
  6703. Created: Feb 23, 1994, 1:13PM
  6704. Modified: Feb 23, 1994, 1:20PM
  6705.  
  6706. Jay
  6707. +---------------------------------------+----------------------------------+
  6708. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  6709. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  6710. |   | ----------+ Development Training  |                  martin@aidt.edu |
  6711. |   +---------------------------------- |                                  |
  6712. +---------------------------------------+----------------------------------+
  6713.  
  6714.  ------ From: Macintosh Scripting Systems, Mar 23, 1994 ------
  6715.  
  6716. Pure speculation:  you compiled the script in question with an older
  6717. version of Anarchie which had the 'aete' correct, or didn't mention quit
  6718. explicitly at all.
  6719.  
  6720. [Try making a copy (so as not to damage your working one) of the script,
  6721. and recompiling the copy.]
  6722.    --John
  6723. =========================================================================
  6724. Date:         Wed, 23 Mar 1994 11:00:51 -0800
  6725. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6726. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6727. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6728. Subject:      Re: Re> Re: Re> Re: Anarchie question....
  6729.  
  6730. >Nope. Here is the exact script that I typed in:
  6731. >
  6732. >tell application "Anarchie" to activate
  6733. >tell application "Anarchie" to quit
  6734. >
  6735. >I then checked the syntax, and ran the script. Anarchie started up, then
  6736. >quit. VERY STRANGE!!!
  6737. >
  6738. >BTW, here are the dates for my copy of Anarchie:
  6739. >
  6740. >Created: Feb 23, 1994, 1:13PM
  6741. >Modified: Feb 23, 1994, 1:20PM
  6742.  
  6743. The dates here are the same.
  6744.  
  6745. The above script still fails here.  But, as expected, this one works:
  6746.  
  6747. activate application "Anarchie"
  6748. quit application "Anarchie"
  6749.  
  6750. That's because AppleScript uses its own knowledge of the quit command to
  6751. create the event in the latter case (we're outside any "tell" here).  I
  6752. think.
  6753.  
  6754. Anyhow, the above seems to point to the workaround.  Others???
  6755.  
  6756.    --John
  6757.  
  6758. --
  6759. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6760. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  6761. =========================================================================
  6762. Date:         Wed, 23 Mar 1994 21:02:55 +0100
  6763. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6764. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6765. From:         Ralf Sigmund <nhcdrsig@RRZN-USER.UNI-HANNOVER.DE>
  6766. Subject:      Re Re: Selecting FileMaker records using AS
  6767.  
  6768. >At 10:13 3/23/94 +0100, Ralf Sigmund wrote:
  6769. >[quoting me]
  6770. >>>For medium to large FileMaker databases, search time can become very long
  6771. >>>Y(I learned how to specifiy timeouts in AppleScript because of that).  If
  6772. >>>that becomes a problem, try to express the search in a FileMaker
  6773. >>>script/macro thing, and trigger that from your AppleScript script.  The
  6774. >>>diference in execution time can be considerable.
  6775. >>>   --John
  6776. >>Having a database with 6400  records  the difference in excution speed is =
  6777. 2
  6778. >>seconds to 8 Minutes....
  6779. >>
  6780. >>How can I tell FMpro for which term in which field I would like to search =
  6781. ?
  6782. >
  6783. >If the search you need to do is completely different each time, I don't
  6784. >have a good idea.  At the other end of the scale, of course, would be one
  6785. >of 6 or 7 "canned" searches, each with its own FileMaker macro.
  6786. >
  6787.  
  6788. It is unfotunatlely always completely different. The FMpro Database is a
  6789. Database of chemical compounds and their physical properties.
  6790. What I am trying to do is to retrive the physical data belonging to an
  6791. given chemical compound from within an other application (( CSC ChemFinder
  6792. plus 2.0))
  6793. =46or example I just type "Methanol" to the name field in Chem Finder=B4s
  6794. database and an script attached to this field fills in the missing data
  6795. into the chem finder database from the FilemakerPro database....
  6796.  
  6797. --- Ralf
  6798.  
  6799. nhcdrsig@rrzn-user.uni-hannover.de (Ralf Sigmund)
  6800. Tel.: 0511-4584229
  6801. =========================================================================
  6802. Date:         Thu, 24 Mar 1994 11:42:14 -0500
  6803. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6804. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6805. From:         David Myers <myers@ACEC.COM>
  6806. Subject:      Frontier: Launching scripts into background threads
  6807.  
  6808. Is it possible to launch a Frontier script into a background thread?  I
  6809. make heavy use of FinderMenus,
  6810. but one of the problems with this is that whenever a long, complex script
  6811. is launched by one of my
  6812. FinderMenus, all the FinderMenus become unavailable until the script
  6813. terminates.  Is there anything
  6814. I can do to make the FinderMenu scripts run in a background thread, thereby
  6815. returning me to
  6816. FinderMenus immediately?
  6817.  
  6818. -David.
  6819. =========================================================================
  6820. Date:         Thu, 24 Mar 1994 11:13:02 -0600
  6821. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6822. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6823. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6824. Subject:      gaea change
  6825.  
  6826. Morning everyone,
  6827.  
  6828. Lee Hoong was initially confused by the format of the ScheduleSuite file (it's
  6829. a SuperViewer file) so I decided to head off future problems. I've combined
  6830. the document with a Read Me file and the free to distribute Viewer and
  6831. re-uploaded them to gaea. Since it really is documentation, I shoved it in the
  6832. /applescript/docs directory.
  6833.  
  6834. pf
  6835.  
  6836.  
  6837.  
  6838. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6839. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  6840. =========================================================================
  6841. Date:         Thu, 24 Mar 1994 15:47:53 EST
  6842. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6843. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6844. From:         "William J. Jamison" <jami1@AOL.COM>
  6845. Subject:      Authorware print docs scripts
  6846.  
  6847. I am looking for _any_ Authorware scripts, but more specifically printing
  6848. scripts that will allow printing without actually ever leaving Authorware.
  6849. Needed for printing coupons, maps, for a 24-hour City Hall kiosk. Frontier,
  6850. QuicKeys, AppleScript, anything. Would there be anything on gaea? How do I
  6851. access gaea.
  6852.  
  6853. Thanks,
  6854.  
  6855. Bill Jamison
  6856. City of Longview
  6857. 1-206-577-3392
  6858. fax 577-3388
  6859. AOL - Jami1
  6860. =========================================================================
  6861. Date:         Thu, 24 Mar 1994 14:57:13 CST
  6862. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6863. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6864. From:         "Kenneth J. Fox" <kjfox@MKE.AB.COM>
  6865. Subject:      Syntax checking on dynamic references
  6866.  
  6867. Hi,
  6868. Being somewhat of a recent convert from 100% HyperTalk to
  6869. a mix of AppleScripting, I am having a problem with
  6870. AppleScript's ability to check syntax of some of my handlers
  6871.  
  6872. I'm writing some applications that require a tell
  6873. to reference a remote machine.  Looking ahead to the day when
  6874. either the name of the target machine or zone changes, I'd
  6875. like to read the names of these out of fields and then use these
  6876. variables in the tell such as:
  6877.  
  6878.    set theMachine to card field "machine"
  6879.    set theZone to card field "zone"
  6880.  
  6881.    tell application "Notify Server" of machine theMachine of zone theZone
  6882.       Page me Message "help"
  6883.    end tell
  6884.  
  6885. The syntax appears correct, but the variables are not substituted at check
  6886. time and so the application can't be found, script won't compile and I'm
  6887. sunk.  Any ideas on how to make the machine and zone come in from a field.
  6888. I assume the same problem would occur with FrontMost but I can't afford to
  6889. change the entire stack over even if it didn't.
  6890.  
  6891. Thanks in advance,
  6892. Ken
  6893.  
  6894. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6895. Kenneth J. Fox
  6896. Rockwell Automation - Allen Bradley Co.
  6897. Milwaukee, WI (414)382-3287
  6898. kjfox@mke.ab.com
  6899. =========================================================================
  6900. Date:         Thu, 24 Mar 1994 13:05:35 -0800
  6901. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6902. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6903. From:         Scott Trotter <strotter@NETCOM.COM>
  6904. Subject:      Language Guide Errata Errata
  6905.  
  6906. In the "Language Guide Errata" release note that comes with AS 1.1, there
  6907. is a problem described on page 139 concerning the text of a range of words
  6908. in a string. Specifically, the book's example:
  6909.  
  6910.     text of words 1 thru 4 of "We're all in this together"
  6911.     --result: We're all in this"
  6912.  
  6913. produces a a different result, namely a list of words instead of a string:
  6914.  
  6915.     --result: {"We're", "all", "in", "this"}
  6916.  
  6917. To get the correct result, you must use the following syntax:
  6918.  
  6919.     text from word 1 to word 4 of "We're all in this together"
  6920.     --result: We're all in this"
  6921.  
  6922.  
  6923. I wanted to let everyone know that there is another example of this same
  6924. problem on page 63 of the AS Language Guide, in the section describing
  6925. String values. The "Notes" subsection reads as follows:
  6926.  
  6927.     To get a contiguous range of characters within a string, use the text
  6928.     element. For example, the value of the following statement is the
  6929.     string "y thi".
  6930.  
  6931.     get text of characters 3 thru 7 of "Try this at home"
  6932.     --result: "y thi"
  6933.  
  6934.     The result of the same statement without the text element is a list.
  6935.  
  6936.     get characters 3 thru 7 of "Try this at home"
  6937.     --result: {"y", " ", "t", "h", "i"}
  6938.  
  6939. In fact, both statements product the same list as a result. To get the
  6940. string instead of the list, you must use the statement:
  6941.  
  6942.     get text from character 3 to character 7 of "Try this at home"
  6943.     --result: "y thi"
  6944.  
  6945. BTW, you can also coerce the list into a string, *provided* that you
  6946. haven't changed Applescript's text item delimiters:
  6947.  
  6948.     get characters 3 thru 7 of "Try this at home" as string
  6949.     --result: "y thi"
  6950.  
  6951.  
  6952. --
  6953. ======================================================================
  6954. Scott Trotter          Desktop Strategies       Beaverton, Oregon, USA
  6955. email: strotter@netcom.com    fax: 503.641.2983    voice: 503.641.3741
  6956. =========================================================================
  6957. Date:         Thu, 24 Mar 1994 15:25:00 -0600
  6958. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6959. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6960. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6961. Subject:      Re: Authorware print docs scripts
  6962. In-Reply-To:  Your message of "Thu, 24 Mar 94 15:47:53 EST"
  6963.  
  6964. Bill,
  6965.  
  6966. >I am looking for _any_ Authorware scripts, but more specifically printing
  6967. >scripts that will allow printing without actually ever leaving Authorware.
  6968. >Needed for printing coupons, maps, for a 24-hour City Hall kiosk. Frontier,
  6969. >QuicKeys, AppleScript, anything. Would there be anything on gaea? How do I
  6970. >access gaea.
  6971.  
  6972. I don't recall anything Authorware-specific on gaea. You reach gaea via FTP at
  6973. gaea.kgs.ukans.edu. Check the frontier, applescript, and QuicKeys directories.
  6974.  
  6975. Is Authorware scriptable (I'm not familiar with the program)? If so, are you
  6976. planning on attaching a print script to a button? If it isn't, QuicKeys will
  6977. give you a "reasonable" interface for your scripts. I can elaborate if that's
  6978. the direction you are headed.
  6979.  
  6980. Perhaps someone who knows the program can give a better suggestion.
  6981.  
  6982. pf
  6983.  
  6984.  
  6985. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6986. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  6987.  
  6988. "Bad spellers of the world, untie!"
  6989.                                         --Graffito
  6990. =========================================================================
  6991. Date:         Thu, 24 Mar 1994 14:07:47 -0800
  6992. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6993. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6994. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6995. Subject:      Re: Frontier: Launching scripts into background threads
  6996.  
  6997. >Is it possible to launch a Frontier script into a background thread?  I
  6998. >make heavy use of FinderMenus,
  6999. >but one of the problems with this is that whenever a long, complex script
  7000. >is launched by one of my
  7001. >FinderMenus, all the FinderMenus become unavailable until the script
  7002. >terminates.  Is there anything
  7003. >I can do to make the FinderMenu scripts run in a background thread, thereby
  7004. >returning me to
  7005. >FinderMenus immediately?
  7006.  
  7007. Top of head answer (all the good stuff fell to the bottom 30 years ago,
  7008. unfortunately--Army Basic Training did that):
  7009.  
  7010. You could try sending a 'misc' 'dosc' event to Frontier (from the script in
  7011. the FinderMenu item), using the finderEvent () verb.  FinderEvent does not
  7012. wait for a reply...the string sent as the '----' parameter would be trigger
  7013. the script you actually want to execute.
  7014.  
  7015. Please let us know whether that works for you <grin>.
  7016.  
  7017. I may be missing something less obscure, too.  --John
  7018.  
  7019. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  7020.   UserLand Software support
  7021. =========================================================================
  7022. Date:         Thu, 24 Mar 1994 20:42:54 -0600
  7023. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7024. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7025. From:         Fred Terry <pfterry@LKS.CSI.COM>
  7026. Subject:      a request for contributions
  7027.  
  7028. Everyone,
  7029.  
  7030. I'm wrapping up a book on AppleScript in the next couple of months.
  7031. Like most writers, I tend to live in a world of my own creation that
  7032. may or may not be tapped into the "real" world. Because I want this book
  7033. to reflect the real world, and I can tell that some of you are systems
  7034. integrators like me, I thought I would try to get some examples from
  7035. other scripters.
  7036.  
  7037. The book is slanted towards systems integrators--people that take
  7038. off-the-shelf applications and combine them with scripts to solve problems or
  7039. add features that they could never get from a commercial application. What
  7040. I'm looking for are scripts that wrap the functions of two or three
  7041. applications (word processor, database, spreadsheet, page layout and
  7042. graphics packages) together. M & T Books is publishing the book. If you
  7043. have something you would like to contribute, drop me a note at
  7044. pfterry@lks.csi.com. If your script is included in the book, you'll get
  7045. your name (and your script) immortalized in print.
  7046.  
  7047.  
  7048. pf
  7049.  
  7050.  
  7051.  
  7052. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7053. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  7054. =========================================================================
  7055. Date:         Thu, 24 Mar 1994 23:44:50 EST
  7056. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7057. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7058. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  7059. Subject:      Re: a request for contributions
  7060. In-Reply-To:  In reply to your message of THU 24 MAR 1994 09:42:54 EST
  7061.  
  7062. >I'm wrapping up a book on AppleScript in the next couple of months.
  7063. [...]
  7064. >If you
  7065. >have something you would like to contribute, drop me a note
  7066.  
  7067. Well, I don't have a script to offer but...
  7068.  
  7069.     I've been working for the past year on what would now be called an
  7070. improved version of FolderWatcher (Although FW didn't exist when I
  7071. started coding). It will be a shareware app (faceless) that, like FW,
  7072. will keep an eye on folders. However, *un*like FW, it uses an internal
  7073. index to determine exactly how the folder changed, so that a more
  7074. specific action can be taken than just running a generic script. Thus,
  7075. you can have specific scripts handle newly arrived files, files not
  7076. modified for a certain amount of time, files moving around, etc, etc.
  7077. This is of course much more difficult to implement than simply watching
  7078. the folder's modification date.
  7079.  
  7080.     The package will contain an internal library of pre-defined actions,
  7081. such as copy file, move file, rename, make alias, print, etc. for
  7082. folks that don't have AS. However, there are numerous ways to tie
  7083. in AS, including attaching a script to a folder so that the script gets
  7084. a shot at all detected events, making it a very useful scripting tool.
  7085.  
  7086.     I'm projecting a stable beta within a few (maybe several) weeks,
  7087. and a release shortly after that. All told, maybe another 2/3  months
  7088. until release. (Definately first half, and I would be disappointed
  7089. if it were any later than, say, late April.)
  7090.  
  7091.     I'll be sending my end product to the Tao people and Danny
  7092. Goodman's crew, but those books don't seem to be headed in the direction
  7093. of an updated release (although you never know -- they still don't
  7094. cover AS1.1).
  7095.  
  7096.     Anyway, if you'll be including s/w with your book, I thought this
  7097. might interest you. I'm rather excited about this product's
  7098. flexibility -- I'm already using it on my system. Please let me know
  7099. if you're interested or not in including the end product -- I feel it
  7100. might prove useful to your target group of people, and I would be more
  7101. than happy to give you distribution rights. Of course, I'd also be
  7102. happy to send you a beta as soon as a decent one is achieved, so you
  7103. can check it out.
  7104.  
  7105.     Sincerely,
  7106.  
  7107.     Mark Aiken
  7108.     inra@musicb.mcgill.ca
  7109. =========================================================================
  7110. Date:         Thu, 24 Mar 1994 20:48:30 -0800
  7111. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7112. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7113. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7114. Subject:      Re: Frontier: Launching scripts into background threads
  7115.  
  7116. I said...
  7117. >Top of head answer (all the good stuff fell to the bottom 30 years ago,
  7118. >unfortunately--Army Basic Training did that):
  7119.  
  7120. [Details omitted, because...]
  7121.  
  7122. Sad to say, it doesn't work (the script goes off executing independently,
  7123. but the menus stay dimmed until it's done).
  7124.  
  7125. Something that SHOULD work would be to have the menu script set a handy
  7126. flag in the Frontier database.  A Frontier agent would watch that flag, and
  7127. run the desired script when it is found to be true (setting the flag false
  7128. would be a good idea, too).
  7129.  
  7130.    --John
  7131.  
  7132. --
  7133. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7134. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7135. =========================================================================
  7136. Date:         Fri, 25 Mar 1994 09:16:40 CST
  7137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7139. From:         Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
  7140. Subject:      pfterry@lks.csi.com
  7141.  
  7142. > I'm wrapping up a book on AppleScript in the next couple of months.
  7143. > Like most writers, I tend to live in a world of my own creation that
  7144. > may or may not be tapped into the "real" world. Because I want this book
  7145. > to reflect the real world, and I can tell that some of you are systems
  7146. > integrators like me, I thought I would try to get some examples from
  7147. > other scripters.
  7148. >
  7149. > The book is slanted towards systems integrators--people that take
  7150. > off-the-shelf applications and combine them with scripts to solve problems or
  7151. > add features that they could never get from a commercial application. What
  7152. > I'm looking for are scripts that wrap the functions of two or three
  7153. > applications (word processor, database, spreadsheet, page layout and
  7154. > graphics packages) together. M & T Books is publishing the book. If you
  7155. > have something you would like to contribute, drop me a note at
  7156. > pfterry@lks.csi.com. If your script is included in the book, you'll get
  7157. > your name (and your script) immortalized in print.
  7158.  
  7159. All I have are some scripts I wrote to automate SITcomm for logging into my
  7160. Sparc at work, through the company firewall, and also for connecting to a
  7161. number of FTP sites (log in, move to appropriate areas...with messaging).
  7162. If these would be of interest, I can send them to you.
  7163.  
  7164. If you would like someone to proof-read/review your draft for your book, I
  7165. would be happy to help you out.  :)
  7166.  
  7167. Taylor
  7168. =========================================================================
  7169. Date:         Fri, 25 Mar 1994 14:54:07 -0500
  7170. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7171. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7172. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  7173. Subject:      ScriptEditor not scriptable!
  7174.  
  7175. I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
  7176. suprised to find that it isn't scriptable!  This seems really dumb to me.
  7177. If it was, I could add some of the things that I want it to do, like
  7178. find/replace, comment selected lines, etc.  Any word on whether the
  7179. ScriptEditor itself will support AppleScript in the future?  Are there any
  7180. 3rd party script editing programs that support AppleEvents?
  7181.  
  7182. Steve
  7183.  
  7184. ---------------------
  7185.  jonke@gsfc.nasa.gov
  7186. ---------------------
  7187. =========================================================================
  7188. Date:         Fri, 25 Mar 1994 15:48:54 -0500
  7189. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7190. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7191. From:         David Myers <myers@ACEC.COM>
  7192. Subject:      Looking for a scriptable, file-based grep
  7193.  
  7194. Is anybody aware of a scriptable grep that works on files, rather
  7195. than strings?  I have checked out "greplet" on gaea and the grep
  7196. osax, but these two have the same problem: you have to pass the
  7197. source string along with the pattern via an appleEvent.  If your
  7198. intention is to grep a whole file, you end up chopping up the file
  7199. yourself and passing it line by line over the very low-bandwidth
  7200. appleEvent interface.  What I'm looking for is a grepper that
  7201. you can simply point at a file and set it going, like this: (pardon
  7202. the UserTalk bias, you AppleScripters...)
  7203.  
  7204. grep.launch()
  7205. resultingRec = grep.doAGrep(filespec, pattern)
  7206.  
  7207. (err, to maintain UNIXness, I suppose those args
  7208. should be (pattern, filespec).  UNIX grep always seems backward
  7209. to me...)  I would really like the resulting record to be the text
  7210. of each line that matched, just like UNIX grep.
  7211.  
  7212. This *can't* be a difficult thing to do, and I would do it myself
  7213. (really I would) if I had a C compiler anymore...Anyway, I'd
  7214. appreciate it if somebody could steer me in the right direction.
  7215.  
  7216. -David
  7217. =========================================================================
  7218. Date:         Fri, 25 Mar 1994 14:59:30 CST
  7219. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7220. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7221. From:         "Kenneth J. Fox" <kjfox@MKE.AB.COM>
  7222. Subject:      Re: ScriptEditor not scriptable!
  7223.  
  7224. >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
  7225. >suprised to find that it isn't scriptable!  This seems really dumb to me.
  7226. >If it was, I could add some of the things that I want it to do, like
  7227. >find/replace, comment selected lines, etc.  Any word on whether the
  7228. >ScriptEditor itself will support AppleScript in the future?  Are there any
  7229. >3rd party script editing programs that support AppleEvents?
  7230. >
  7231. >Steve
  7232. >
  7233. >---------------------
  7234. > jonke@gsfc.nasa.gov
  7235. >---------------------
  7236.  
  7237. I'm not sure if this is what you want, but the thought occurred to me that
  7238. HyperCard 2.2 is scriptable and you can essentially create your own script
  7239. editor by creating a card field for the script text.  If the card field is
  7240. named "myText" then the following line of code executes the field as
  7241. AppleScript.
  7242.  
  7243. do card field "myText" as AppleScript
  7244.  
  7245. You are then free to create any handlers you want on the card to do things
  7246. such as block comment, etc. Lot of coding, but very adaptable.
  7247.  
  7248. Just a thought!
  7249. Ken
  7250.  
  7251. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7252. Kenneth J. Fox
  7253. Rockwell Automation - Allen Bradley Co.
  7254. Milwaukee, WI (414)382-3287
  7255. kjfox@mke.ab.com
  7256. =========================================================================
  7257. Date:         Fri, 25 Mar 1994 15:00:12 -0600
  7258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7260. From:         Fred Terry <pfterry@LKS.CSI.COM>
  7261. Subject:      Re: Looking for a scriptable, file-based grep
  7262. In-Reply-To:  Your message of "Fri, 25 Mar 94 15:48:54 EST"
  7263.  
  7264. David,
  7265.  
  7266. >Is anybody aware of a scriptable grep that works on files, rather
  7267. >than strings?  I have checked out "greplet" on gaea and the grep
  7268. >osax, but these two have the same problem: you have to pass the
  7269. >source string along with the pattern via an appleEvent.  If your
  7270. >intention is to grep a whole file, you end up chopping up the file
  7271. >yourself and passing it line by line over the very low-bandwidth
  7272. >appleEvent interface.  What I'm looking for is a grepper that
  7273. >you can simply point at a file and set it going, like this: (pardon
  7274. >the UserTalk bias, you AppleScripters...)
  7275. >
  7276. >grep.launch()
  7277. >resultingRec = grep.doAGrep(filespec, pattern)
  7278. >
  7279. >(err, to maintain UNIXness, I suppose those args
  7280. >should be (pattern, filespec).  UNIX grep always seems backward
  7281. >to me...)  I would really like the resulting record to be the text
  7282. >of each line that matched, just like UNIX grep.
  7283. >
  7284. >This *can't* be a difficult thing to do, and I would do it myself
  7285. >(really I would) if I had a C compiler anymore...Anyway, I'd
  7286. >appreciate it if somebody could steer me in the right direction.
  7287.  
  7288.  
  7289. I won't pretend to know everything that's out there, but I've also looked for
  7290. this and haven't been able to find out. You can use the Regular Expressions
  7291. and the File IO osaxen in Mark Alldritt's Script Tools to compare each line of
  7292. a file against an expression (which I started working on last night), but it
  7293. sounds like you've already thought of this.
  7294.  
  7295. I looked at the source code included in the grepup.sit.hqx file, but I'm a C
  7296. newbie and just don't have the time to do it right now no matter how badly I
  7297. want it.
  7298.  
  7299. Does anyone else know of a scriptable grep? (Please say yes.)
  7300.  
  7301. pf
  7302.  
  7303.  
  7304. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7305. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  7306. =========================================================================
  7307. Date:         Fri, 25 Mar 1994 16:24:45 -0500
  7308. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7309. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7310. From:         King Rhoton <king@ACPUB.DUKE.EDU>
  7311. Subject:      Re: Looking for a scriptable, file-based grep
  7312.  
  7313. MacPerl has grep built-in, and can be called from applescript (and, it's free!).
  7314.  
  7315. King Rhoton                                             king@acpub.duke.edu
  7316. =========================================================================
  7317. Date:         Fri, 25 Mar 1994 13:26:45 -0800
  7318. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7319. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7320. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7321. Subject:      Re: ScriptEditor not scriptable!
  7322.  
  7323. >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
  7324. >suprised to find that it isn't scriptable!  This seems really dumb to me.
  7325. >If it was, I could add some of the things that I want it to do, like
  7326. >find/replace, comment selected lines, etc.  Any word on whether the
  7327. >ScriptEditor itself will support AppleScript in the future?  Are there any
  7328. >3rd party script editing programs that support AppleEvents?
  7329. >
  7330.  
  7331. Strange, isn't it, that the AppleScript Script Editor is not scriptable.
  7332. Surely there will be a third party editor sometime, unless Apple beats the
  7333. parties to it.
  7334.  
  7335. Meanwhile, Frontier is a highly scriptable (but not "Scriptable" in the
  7336. Apple PR sense of being scriptable using object model terminology) venue in
  7337. which to edit AppleScript scripts (use version 3.0.1 or higher).  The
  7338. Frontier editor also does not have a 32K limit on the size of a script (and
  7339. Frontier has a Search/Replace, too).
  7340.  
  7341. And you might even find yourself writing some of your scripts in UserTalk
  7342. now and then.
  7343.  
  7344.    --John
  7345.  
  7346. --
  7347. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7348. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7349. =========================================================================
  7350. Date:         Fri, 25 Mar 1994 15:28:49 -0600
  7351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7353. From:         Fred Terry <pfterry@LKS.CSI.COM>
  7354. Subject:      Re: Looking for a scriptable, file-based grep
  7355. In-Reply-To:  Your message of "Fri, 25 Mar 94 16:24:45 EST"
  7356.  
  7357. King,
  7358.  
  7359. >MacPerl has grep built-in, and can be called from applescript (and, it's free!
  7360. >).
  7361.  
  7362. Whoa! Great suggestion.
  7363.  
  7364. pf
  7365. =========================================================================
  7366. Date:         Fri, 25 Mar 1994 17:21:07 -0500
  7367. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7368. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7369. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  7370. Subject:      More AnArchie questions...
  7371.  
  7372.     I have found a very strange behaviour in Anarchie, or at least it
  7373. seems strange to me. It won't correctly upload or download a text file
  7374. from my Unix account. It seems to have a problem with the carridge
  7375. return to line feed conversion between the MacOS and Unix. Fetch handles
  7376. this quite nicely, but I can't script Fetch like I can AnArchie. Anyone
  7377. know of a way to handle this?
  7378.  
  7379. -Hades
  7380. =========================================================================
  7381. Date:         Fri, 25 Mar 1994 17:23:57 -0500
  7382. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7383. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7384. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  7385. Subject:      Scripting ObjectMaster
  7386.  
  7387. Has anyone experience with scripting ObjectMaster?  I'm just trying to get
  7388. either the contents of the top most window, or the current selection.
  7389. However, if I say:
  7390.  
  7391.   set x to count characters of window 1
  7392.  
  7393. it returns zero, regardless of how much text is in the window, implying
  7394. that windows don't have text in them.  What object does and how do I get
  7395. the text in it?
  7396.  
  7397. The manual talks about AppleEvents, but only in low level terms.  I can't
  7398. make heads or tails out of it (note that I'm currently using OM to develop
  7399. for Unix, not Mac, unfortunately.)
  7400.  
  7401. Steve
  7402.  
  7403. ---------------------
  7404.  jonke@gsfc.nasa.gov
  7405. ---------------------
  7406. =========================================================================
  7407. Date:         Fri, 25 Mar 1994 18:58:12 -0800
  7408. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7409. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7410. From:         Brian Hall <mspace@NETCOM.COM>
  7411. Subject:      Re: Syntax checking on dynamic references
  7412.  
  7413. >From:    "Kenneth J. Fox" <kjfox@MKE.AB.COM>
  7414. >
  7415. >Looking ahead to the day when
  7416. >either the name of the target machine or zone changes, I'd
  7417. >like to read the names of these out of fields and then use these
  7418. >variables in the tell such as:
  7419. >
  7420. >   set theMachine to card field "machine"
  7421. >   set theZone to card field "zone"
  7422. >
  7423. >   tell application "Notify Server" of machine theMachine of zone theZone
  7424. >      Page me Message "help"
  7425. >   end tell
  7426. >
  7427. >The syntax appears correct, but the variables are not substituted at check
  7428. >time and so the application can't be found, script won't compile and I'm
  7429. >sunk.  Any ideas on how to make the machine and zone come in from a field.
  7430. >I assume the same problem would occur with FrontMost but I can't afford to
  7431. >change the entire stack over even if it didn't.
  7432.  
  7433. I remember having this problem at a MacWorld show.  It turns out that
  7434. AppleScript needs to either be able to send a "Get Info" type event to the
  7435. remote app (and ask for the needed scripting info) *or* you need a copy on
  7436. the local machine (even though you will send the event to the remote one.
  7437.  
  7438. Give that a try.
  7439.  
  7440. ps- You might want to send a link to EX.MACHINA (AppleLink) and suggest
  7441. they implement the needed events.
  7442.  
  7443.  
  7444. __________________________________________________________________________
  7445. Brian Hall                                     Internet: mspace@netcom.com
  7446. Mark/Space Softworks                             AppleLink, AOL: MARKSPACE
  7447. Macintosh connectivity software.   Goodies at ftp.netcom.com in pub/mspace
  7448. =========================================================================
  7449. Date:         Sat, 26 Mar 1994 13:31:47 +0800
  7450. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7451. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7452. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  7453. Subject:      Re: More AnArchie questions...
  7454.  
  7455. At  5:21 PM 3/25/94 -0500, Brian V. Hughes wrote:
  7456. >    I have found a very strange behaviour in Anarchie, or at least it
  7457. >seems strange to me. It won't correctly upload or download a text file
  7458. >from my Unix account. It seems to have a problem with the carridge
  7459. >return to line feed conversion between the MacOS and Unix. Fetch handles
  7460. >this quite nicely, but I can't script Fetch like I can AnArchie. Anyone
  7461. >know of a way to handle this?
  7462.  
  7463. Sorry guys, I know this isn't Applescript, but Anarchie is such a great
  7464. program, I thought I better sort it out.
  7465.  
  7466. Anarchie cannot tell from the remote site whether a file is text or binary.
  7467. The default therefore is to download files as binary because applications
  7468. can convert the carriage returns themselves if they happen to be text
  7469. files.  Whereas an application cannot turn a text transfered back into a
  7470. binary file reliably.
  7471.  
  7472. Anarchie also supports Fetch's suffix mappings data, so if you configure
  7473. your Fetch suffix mappings to treat all files ending in .txt as text files,
  7474. then Anarchie will download them using ASCII mode rather than binary.
  7475.  
  7476. If you have Anarchie questions that do not relate to Applescript, (or even
  7477. ones that do) read the documentation, and then just mail Peter.  He gets
  7478. depressed when I send him things from obscure places where people are
  7479. complaining about bugs in his software.
  7480.  
  7481. Cheers,
  7482. Craig
  7483.  
  7484. --
  7485. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  7486. The University of Western Australia      or 380 3860 Email for FAX Number
  7487. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  7488. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  7489. =========================================================================
  7490. Date:         Fri, 25 Mar 1994 21:57:39 PST
  7491. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7492. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7493. From:         SteakFace <asmith@PRODIGY.BC.CA>
  7494. Subject:      Re: Two questions in an attempt to script Eudora/MacPPP
  7495.  
  7496. >What follows is a sample script for a "Notify" applet that came from the
  7497. >list a while ago.  I'm afraid I don't know who originally sent it, so I
  7498. >can't give credit where it is due.
  7499.  
  7500. Thanks for the stuff. I have some questions if you have a moment. If you're
  7501. busy and can't answer don't sweat it. I'm sure I can find someone else to
  7502. help.
  7503.  
  7504.  
  7505. The quoted bits that follow are the code you sent.
  7506.  
  7507. >on =ABevent CSOmeNot=BB msgList
  7508. >
  7509. >--Respond to notification event here
  7510. >
  7511. >end =ABevent CSOmeNot=BB
  7512.  
  7513. I'm sorry, I don't understand what this bit is. Can you easily explain to
  7514. me what it's for and where it came from?
  7515.  
  7516. And pardon my complete cluelessness, but what exactly should the
  7517. "notification event" consist of?
  7518.  
  7519. >-- Below requires the location of the Notify applet, assumed "Hard Disk:Noti=
  7520. >fy"
  7521.  
  7522. What is the "Notify" applet. I was expecting to be able to put the whole
  7523. thing into a single script -- am I to assume that this will require to
  7524. scripts. One that receives messages from Eudora and the passes the message
  7525. on to a second script?
  7526.  
  7527. >on run
  7528. >   tell application "Eudora"
  7529. >      Please Notify alias "Hard Disk:Notify" with Notify
  7530. >   end tell
  7531. >end run
  7532. >
  7533. >
  7534. >on quit
  7535. >   tell application "Eudora"
  7536. >      Please Notify alias "Hard Disk:Notify" without Notify
  7537. >   end tell
  7538. >   continue quit
  7539. >end quit
  7540.  
  7541. I assume that these parts tell Eudora first to send a message upon
  7542. completion of the mail run, and then not to do it anymore once the script
  7543. is finished.
  7544.  
  7545. If these questions will require a massive amount of explaining just tell me
  7546. and I'll dive back into the books and try to work it out myself. If you
  7547. have the time to help I'd be most appreciative.
  7548.  
  7549. And one last question -- do you use a third party script editor, or the one
  7550. that comes with AS from Apple? If so, is it any good?
  7551.  
  7552. Cheers
  7553. SteakFace
  7554.  
  7555.  
  7556.  
  7557. =================================================================
  7558. SteakFace     graphic designer - media manipulator - bad mood guy
  7559. datapanik                                    asmith@prodigy.bc.ca
  7560. Vancouver, Canada
  7561. =================================================================
  7562. My cat would like to know why it is that we humans are so willing
  7563. to lick each other's genitals, but we won't lick our own.
  7564. =========================================================================
  7565. Date:         Sat, 26 Mar 1994 02:10:09 EST
  7566. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7567. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7568. From:         "William J. Jamison" <jami1@AOL.COM>
  7569. Subject:      Re: Authorware print docs scripts
  7570.  
  7571. Thanks Fred Terry.
  7572.  
  7573. The QK2 solution is a _reasonable_ one indeed. One that's a little better is
  7574. the PrintDocs XCMD. Yes, _A_ware is scriptable in a limited sense, not even
  7575. close to Lingo, but it's what I have to work with. I'm sure a
  7576. seamless/background solution is just around the corner.
  7577.  
  7578. OK, so I guess the gaea Internet address: gaea.kgs.ukans.edu is how I reach
  7579. it, how do I "browse" the frontier, applescript, and QuicKeys directories?
  7580. What is FTP? Somebody please pass the towel so I can dry behind my ears?
  7581.  
  7582. Totally unrelated, but - how do I reset the printer port with a Stylewriter
  7583. and X-10 home controller hanging off an A/B switch on a 660AV after sending
  7584. _weird_ <---(I b4 e except after c and sometimes w) events (XCMD's, UCMD's
  7585. and Easy Alarms events) to it in the process of programming all the stuff in
  7586. my house to scare the crap out of burglars when we're all out and wake us up
  7587. in the morning and turn on the coffee 5 minutes b4 we get out of bed and turn
  7588. my son's Sega off so he'll get to bed and not pester his sisters the next
  7589. day, without having to restart the AV? I get a msg saying that the serial
  7590. port is in use by another application and would I please quit that
  7591. application and then I can have my printer back, and yes I switched the A/B
  7592. switch back and I did the Chooser/Page Setup thing. GeoPorts can be a real
  7593. pain ;-^) I don't think all that stuff likes being ran off the printer port.
  7594. Anybody know of a software controllable multi-bus that can be hung off of the
  7595. GeoPort or even an A/B switch? I found an XOBJect that flushes the serial
  7596. port but I haven't quite figured out how to make it work.
  7597.  
  7598. One more thing on my list: Apple File Exchange doesn't know AE's worth beans
  7599. and it's an Apple product. I can barely get it automated with T2+ and QK2 (we
  7600. don't do bit matches) fails miserably. Maybe Frontier (wrote a neat little
  7601. text file merger today in less than 1/2 an hour that gloms/gathers all the
  7602. files in one folder into one big file in another folder) can do DOS/Mac
  7603. conversions straight off a DOS formatted disk and onto a Mac? How about it
  7604. JB? Apple says try PC Exchange and I think that's rich but I'll try it
  7605. anyway, especially if it works. New meter reader contract for the city. I
  7606. told them to get a Mac based system, but NOOO. Programmer serfs don't have
  7607. enough clout.
  7608.  
  7609. John, does Userland have a better scheduling system than the agents approach
  7610. yet or are they working on it? Easy Alarms has been doing a great job of
  7611. handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
  7612. that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
  7613. gave up on Control Tower a long time ago.
  7614. =========================================================================
  7615. Date:         Fri, 25 Mar 1994 23:48:45 -0800
  7616. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7617. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7618. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7619. Subject:      Re: Authorware print docs scripts
  7620.  
  7621. At 02:10 3/26/94 -0500, William J. Jamison wrote:
  7622.  
  7623. >John, does Userland have a better scheduling system than the agents approach
  7624. >yet or are they working on it? Easy Alarms has been doing a great job of
  7625. >handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
  7626. >that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
  7627. >gave up on Control Tower a long time ago.
  7628.  
  7629. Some time ago, UserLand uploaded the Scheduler Suite.  As of Frontier 3.0,
  7630. this suite was incorporated into the Frontier product in slightly fixed
  7631. form, so if you have Frontier 3.0 or later you have the suite.
  7632.  
  7633. The suite is based on one agent, whose job, once per minute, is to look
  7634. through a table of "tasks" for a task whose scheduled time has arrived.
  7635. The task is (usually) periodic, and after it runs the scheduler sets it up
  7636. to run the next time it is due.  That process takes into account any delays
  7637. in running the task (such as Frontier not being running), so the process is
  7638. drift-free:  if you say 8AM every 24 hours, and there was a delay until
  7639. noon in running it today because Frontier wasn't running (or some other
  7640. reason), it will still run at 8AM tomorrow.
  7641.  
  7642. If you are still on Frontier 2.x, you can find the suite on the FTP server
  7643. at gaea...someone else will help you use that, I'm sure.
  7644.  
  7645.    --John
  7646.  
  7647. --
  7648. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7649. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  7650. =========================================================================
  7651. Date:         Sat, 26 Mar 1994 15:01:28 +0100
  7652. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7653. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7654. From:         Raoul Schaffner <raoul@EAWAG.CH>
  7655. Subject:      Seeking Password-entry osax (w/ blind writing)
  7656.  
  7657. Hi y'all!
  7658.  
  7659. I'm looking for a Scripting Addition that allows me to bring up dialog
  7660. boxes similar to the ones coming from the "Display Dialog" osax shipped
  7661. with AppleScript 1.0.
  7662.  
  7663. The feature I'm missing is "blind typing" by displaying a bullet for
  7664. each typed char. This allows the Scripter to handle passwords in a
  7665. more secure way than without "bullets". (I know that this isn't secure
  7666. at all since the passwd is always available as simple text)
  7667.  
  7668. Any hints, pointers, handles? :-)
  7669.  
  7670.  
  7671. Thanks,
  7672. Raoul
  7673.  
  7674.  
  7675. ________________________________________________________________________
  7676. |||||||||
  7677. |||||||   Raoul Schaffner                         E-Mail: raoul@eawag.ch
  7678. |||||     Swiss Federal Institute for Water
  7679. |||       Resources And Water Pollution Control   Phone:  +41-1-823-5511
  7680. |         Computer Science Dept.                  Fax:    +41-1-823-5028
  7681. =========================================================================
  7682. Date:         Sat, 26 Mar 1994 08:12:43 -0600
  7683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7685. From:         Fred Terry <pfterry@LKS.CSI.COM>
  7686. Subject:      Re: Authorware print docs scripts
  7687. In-Reply-To:  Your message of "Sat, 26 Mar 94 02:10:09 EST"
  7688.  
  7689. >The QK2 solution is a _reasonable_ one indeed. One that's a little better is
  7690. >the PrintDocs XCMD. Yes, _A_ware is scriptable in a limited sense, not even
  7691. >close to Lingo, but it's what I have to work with. I'm sure a
  7692. >seamless/background solution is just around the corner.
  7693. >
  7694. >OK, so I guess the gaea Internet address: gaea.kgs.ukans.edu is how I reach
  7695. >it, how do I "browse" the frontier, applescript, and QuicKeys directories?
  7696. >What is FTP? Somebody please pass the towel so I can dry behind my ears?
  7697.  
  7698. Well, I was about to tell you to ftp a copy of Anarchie and look at the
  7699. AppleScript bookmark to browse gaea.....but I guess that won't work. FTP
  7700. is file transfer protocol and is the way files are moved around the
  7701. Internet--sorta like downloading from CompuServe and BBSs but cooler. You
  7702. might want to grab a copy of Adam Engst's Mac Internet Starter Kit book.
  7703. It'll hold your hand through most of this stuff.
  7704.  
  7705. >
  7706. [some stuff deleted for brevity]
  7707. >Anybody know of a software controllable multi-bus that can be hung off of the
  7708. >GeoPort or even an A/B switch? I found an XOBJect that flushes the serial
  7709. >port but I haven't quite figured out how to make it work.
  7710.  
  7711. A company called Silicon Valley Bus (honest) has a multi-serial port product
  7712. that is software controlable. Expensive, but it might work better than the
  7713. earlier version of the Axion switch that I have.
  7714. >
  7715. >One more thing on my list: Apple File Exchange doesn't know AE's worth beans
  7716. >and it's an Apple product. I can barely get it automated with T2+ and QK2 (we
  7717. >don't do bit matches) fails miserably. Maybe Frontier (wrote a neat little
  7718. >text file merger today in less than 1/2 an hour that gloms/gathers all the
  7719. >files in one folder into one big file in another folder) can do DOS/Mac
  7720. >conversions straight off a DOS formatted disk and onto a Mac? How about it
  7721. >JB? Apple says try PC Exchange and I think that's rich but I'll try it
  7722. >anyway, especially if it works. New meter reader contract for the city. I
  7723. >told them to get a Mac based system, but NOOO. Programmer serfs don't have
  7724. >enough clout.
  7725. >
  7726. >John, does Userland have a better scheduling system than the agents approach
  7727. >yet or are they working on it? Easy Alarms has been doing a great job of
  7728. >handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
  7729. >that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
  7730. >gave up on Control Tower a long time ago.
  7731.  
  7732. Mark Alldritt has a schedular cdev that's ideal for this stuff. It's in
  7733. late beta, but you might want to give him a holler [alldritt@wimsey.com].
  7734.  
  7735. Good luck.
  7736.  
  7737. pf
  7738.  
  7739.  
  7740.  
  7741. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7742. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  7743.  
  7744. "Bad spellers of the world, untie!"
  7745.                                         --Graffito
  7746. =========================================================================
  7747. Date:         Sat, 26 Mar 1994 10:51:50 -0500
  7748. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7749. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7750. From:         John Schettino <js12@GTE.COM>
  7751. Subject:      Re: Modeless Dialog Applescript
  7752.  
  7753. >Has anyone out there created an applet or script which can display a
  7754. >modeless dialog window ?   I need to finish up a current project which
  7755. >will allow the user to either ignore a posted message and click back to
  7756. >the desktop or other application, leaving the dialog box showing.  I
  7757. >cannot do this with a modal dialog box because it expects to be dismissed
  7758. >after displaying itself.
  7759. >
  7760. >I would appreciate any suggestions.
  7761. >Allan
  7762.  
  7763. If you got the AppleScript 1.1 package, it includes FrontMost, which does
  7764. this quite well. Falling that, I think there is a way to call HyperCard
  7765. Xcmds from AS, and I know the Renaldi Xcmds contain floating windows as
  7766. well as non-modal dialogs. Good Luck!
  7767.  
  7768. - john
  7769.  
  7770. -----------------------------------------
  7771. js12@gte.com                      GTE Laboratories
  7772. John Schettino                           Waltham, MA
  7773. =========================================================================
  7774. Date:         Sat, 26 Mar 1994 08:04:00 PST
  7775. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7776. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7777. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  7778. Subject:      Re: ScriptEditor not scriptable
  7779.  
  7780. >Date:    Fri, 25 Mar 1994 14:54:07 -0500
  7781. >From:    Stephen Jonke <jonke@GSFC.NASA.GOV>
  7782. >Subject: ScriptEditor not scriptable!
  7783. >
  7784. >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
  7785. >suprised to find that it isn't scriptable!  This seems really dumb to me.
  7786. >If it was, I could add some of the things that I want it to do, like
  7787. >find/replace, comment selected lines, etc.  Any word on whether the
  7788. >ScriptEditor itself will support AppleScript in the future?  Are there any
  7789. >3rd party script editing programs that support AppleEvents?
  7790.  
  7791. The Apple Script Editor is indeed not scriptable.  The C-language API
  7792. provided by AppleScript makes it very difficult to make a general purpose
  7793. scriptable script editor.  This is because scripts are compiled in the
  7794. context of the dictionary of the application compiling them.  I've not been
  7795. able to find a way to tell AppleScript to use its own doictionary or no
  7796. dictionary at all.
  7797.  
  7798. Once solution is to use a more powerfull editor like BBEdit, and Jon Pogh's
  7799. MPW command (through ToolServer) to build your scripts.  Not quite
  7800. scriptable, but better than Script Editor.
  7801.  
  7802. -Mark
  7803. =========================================================================
  7804. Date:         Sat, 26 Mar 1994 13:17:25 EST
  7805. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7806. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7807. From:         "William J. Jamison" <jami1@AOL.COM>
  7808. Subject:      Frontier's Scheduler Suite
  7809.  
  7810. On 26 Mar 1994 at 02:50:49 -0500  John W. Baxter wrote:
  7811.  
  7812. xThe suite is based on one agent, whose job, once per minute, is to look
  7813. xthrough a table of "tasks" for a task whose scheduled time has arrived.
  7814. xThe task is (usually) periodic, and after it runs the scheduler sets it up
  7815. xto run the next time it is due.  That process takes into account any delays
  7816. xin running the task (such as Frontier not being running), so the process is
  7817. xdrift-free:  if you say 8AM every 24 hours, and there was a delay until
  7818. xnoon in running it today because Frontier wasn't running (or some other
  7819. xreason), it will still run at 8AM tomorrow.
  7820.  
  7821.  
  7822. Yes, I was aware of the Scheduler Suite, it's right ther hanging at the
  7823. bottom of my suites menu, but having Frontier running all the time isn't
  7824. neccesary when Easy Alarms is already running in the background and handles
  7825. the scheduling better. I could even do it with Smart Alarms (which I abhor).
  7826. I guess it's kind of silly and I don't expect much to come of it and I don't
  7827. want to make an issue of it or even complain however capricious that may
  7828. seem. It would just be nice, (((((Frontier))))). If Userland were to take on
  7829. this aspect of software development, it would put them into competition with
  7830. NUD (I don't have it. I have lots of other cool Now stuff. Does it send Apple
  7831. Events?) and that would probably be even sillier and more demeaning. If they
  7832. get _bored_ though, it would be nice. Maybe the world could use a better job
  7833. scheduler on the Mac? A _serious_ job scheduler, maybe by it's very tone and
  7834. bearing, not meant to remind you to take out the garbage, mow the dog, water
  7835. the cat, haul wood, chop water or wish that you actually had hair. John is
  7836. not all wet. He is inside, answering his E-mail at 2AM while the rest of us
  7837. are snuggled up asleep on the couch not expecting such immediate response.
  7838.  
  7839. //Jami//
  7840. (William J. Jamison)  Kelso, WA
  7841. Old hippies never die, you just wish they would take a bath sometimes.
  7842. =========================================================================
  7843. Date:         Sat, 26 Mar 1994 13:17:39 EST
  7844. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7845. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7846. From:         "William J. Jamison" <jami1@AOL.COM>
  7847. Subject:      FTP, buses and schedulers
  7848.  
  7849. At 08:12:43 Sat, 26 Mar 1994 -0600  Fred Terry wrote:
  7850.  
  7851. xWell, I was about to tell you to ftp a copy of Anarchie and look at the
  7852. xAppleScript bookmark to browse gaea.....but I guess that won't work. FTP
  7853. xis file transfer protocol and is the way files are moved around the
  7854. xInternet--sorta like downloading from CompuServe and BBSs but cooler. You
  7855. xmight want to grab a copy of Adam Engst's Mac Internet Starter Kit book.
  7856. xIt'll hold your hand through most of this stuff.
  7857.  
  7858. Still wet, but getting drier, need another towel. OK I can do that, lots of
  7859. local BBS's, even a Telefinder based one that promises to have FTP soon, tons
  7860. of Internet docs right under my nose on my computer, enough to write my own
  7861. book, looking forward to browsing the Internet and being a real pest ;-^)
  7862. Thanks.
  7863.  
  7864. xA company called Silicon Valley Bus (honest) has a multi-serial port product
  7865. xthat is software controlable. Expensive, but it might work better than the
  7866. xearlier version of the Axion switch that I have.
  7867.  
  7868. We have one at work, 8-pin, won't work on the GeoPort (9 pin), otherwise a
  7869. great product. Do they have a 9 pin version? Nevermind if you don't know,
  7870. I'll call Monday.
  7871.  
  7872. xMark Alldritt has a schedular cdev that's ideal for this stuff. It's in
  7873. xlate beta, but you might want to give him a holler [alldritt@wimsey.com].
  7874.  
  7875. Hmmm (drooling) OK, I'll byte. Thank you very much. Maybe Mark and Dave Winer
  7876. should talk to each other.
  7877.  
  7878. //Jami//
  7879. (William J. Jamison)  Kelso, WA
  7880. Old hippies never die, just wish they'd take a bath sometimes.
  7881. =========================================================================
  7882. Date:         Sat, 26 Mar 1994 15:56:38 EST
  7883. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7884. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7885. From:         Atul Butte <ATUL@BROWNVM.BROWN.EDU>
  7886. Subject:      Re: Seeking Password-entry osax (w/ blind writing
  7887.  
  7888. >From:         Raoul Schaffner <raoul@EAWAG.CH>
  7889. >
  7890. >The feature I'm missing is "blind typing" by displaying a bullet for
  7891. >each typed char. This allows the Scripter to handle passwords in a
  7892. >more secure way than without "bullets". (I know that this isn't secure
  7893. >at all since the passwd is always available as simple text)
  7894. >
  7895. >Any hints, pointers, handles? :-)
  7896.  
  7897. Check out  gaea.kgs.ukans.edu,
  7898. in /applescript/osaxen/Password_OSAXen.sit.hqx
  7899.  
  7900. -- Atul
  7901.  
  7902. ---------------------------------------------------------------------
  7903. Atul Butte
  7904. Brown University School of Medicine
  7905. currently in Howard Hughes Medical Institute / National Institutes of Health
  7906.                              Research Scholars Program
  7907. atul_butte@brown.edu
  7908. atul_butte@nih.gov
  7909. =========================================================================
  7910. Date:         Sat, 26 Mar 1994 23:35:26 -0500
  7911. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7912. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7913. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  7914. Subject:      Re> Syntax checking on dynamic references
  7915.  
  7916. >The syntax appears correct, but the variables are not substituted at check
  7917. >time and so the application can't be found, script won't compile and I'm
  7918. >sunk.  Any ideas on how to make the machine and zone come in from a field.
  7919. >I assume the same problem would occur with FrontMost but I can't afford to
  7920. >change the entire stack over even if it didn't.
  7921.  
  7922. When you compile an AS, the compiler needs to check with the application on
  7923. the correct usage of terminology. If the application isn't around (or if the
  7924. complete specification of the application can't be resolved at compile time -
  7925. as in variables) the script won't compile. There is no real elegant way
  7926. around this (no, it doesn't work in FrontMost either). About the best way to
  7927. do this is to substitute the actual event (or class) names (which are of the
  7928. general form <<event XXXXyyyy>>, <<class XXXX>>, etc.) and parameters for the
  7929. AS terminology. This, of course, is not an easy task, but here's one way:
  7930.  
  7931. 1) Compile your script in AS using a resolvable specification. You get
  7932. something like:
  7933.  
  7934. tell application "Anarchie"
  7935.         list alias "HD1:thelist" host "host" path "path"
  7936. end tell
  7937.  
  7938. 2) Save the compiled AS and close it.
  7939.  
  7940. 3) Get rid of the target application; for instance, stuff it and throw away
  7941. the uncompressed version.
  7942.  
  7943. 4) Open up the script. It will ask you to locate the target application. Just
  7944. pick some application. What you will get is:
  7945.  
  7946. tell application "some application"
  7947.         <<event ArchList>> alias "HD1:thelist" given <<class FTPh>>:"host", <<cl
  7948. ass
  7949. FTPc>>:"path"
  7950. end tell
  7951.  
  7952. 5) Now, you can copy this script and paste it into HyperCard, with the
  7953. following changes:
  7954.  
  7955. tell application "Anarchie" of machine x of zone y
  7956.         <<event ArchList>> alias "HD1:thelist" given <<class FTPh>>:"host", <<cl
  7957. ass
  7958. FTPc>>:"path"
  7959. end tell
  7960.  
  7961. and it will compile. This _SHOULD_ work, but I can't test it right now, since
  7962. I'm at home with no network. Anyway, I don't deserve the credit if it does, I
  7963. got this tip from someone else (but haven't gotten around to trying it) but I
  7964. can't remember who. Of course, the easiest way to do this is just to figure
  7965. out what the event name and associated parameters are and write it yourself.
  7966. (The << and >> are actually the option-\ and option-shift-\ characters
  7967. respectively).
  7968.  
  7969. If you try it, let us all know if it works. If anyone else has a better idea,
  7970. I'd really like to hear it, as I will need to deal with this particular
  7971. situation myself someday!
  7972.  
  7973. Jay Martin
  7974. Alabama Industrial Development Training
  7975. =========================================================================
  7976. Date:         Sat, 26 Mar 1994 19:02:46 -0500
  7977. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7978. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7979. From:         Jay Hebert <jayh@LAISON.W8HD.ORG>
  7980. Organization: L'AISON - Beverly Hills, Michigan
  7981. Subject:      MacPPP Control 1.1
  7982.  
  7983. I've really enjoyed using MacPPP Control osax in recent weeks, and kudos to
  7984. its author.
  7985.  
  7986. Situation:  I have several PPP hosts that I have scripts for.  When I invoke
  7987. PPP through applescript, I don't seem to have any way to find out which one
  7988. I'm calling, or to demand which one I call at launch.
  7989.  
  7990. I opened the osax in the script editor, and It wouldn't appear that there is
  7991. support for returning the current script, or changing it.  (Although, I'd be
  7992. happy to be wrong!)  Is there any way, short of a QuickKey hack that opens
  7993. the ConfigPPP control panel, to do this?
  7994.  
  7995. I think adding such a thing would increase the usefulness of this osax many
  7996. times over.
  7997.  
  7998. Thanks for listening (reading?),
  7999. Jay
  8000.  
  8001. --==========================jayh@laison.w8hd.org=========================
  8002.   Metallica,||   When a man lies he murders / Some part of the world
  8003.    To Live  ||These are the pale deaths which / Men miscall their lives
  8004.      is     ||     All this I cannot bear / To witness any longer
  8005.    To Die   ||     Cannot the kingdom of salvation / Take me home
  8006. =======================================================================
  8007. 1)  These opinions are mine.-==- 2)  Sending me mail gives me
  8008. I'm too self-interested to  -==- permission to reproduce it in any form
  8009. speak for anyone else.      -==- unless otherwise explicitly stated.
  8010. =========================================================================
  8011. Date:         Mon, 28 Mar 1994 01:27:24 -0500
  8012. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8013. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8014. From:         Paki Papaioanu <ppapaioa@BUSMGA.BU.EDU>
  8015. Subject:      Re: Anarchie question....
  8016.  
  8017. >The above script still fails here.  But, as expected, this one works:
  8018. >
  8019. >activate application "Anarchie"
  8020. >quit application "Anarchie"
  8021. >
  8022. >That's because AppleScript uses its own knowledge of the quit command to
  8023. >create the event in the latter case (we're outside any "tell" here).  I
  8024. >think.
  8025. >
  8026. >Anyhow, the above seems to point to the workaround.  Others???
  8027. >
  8028. >   --John
  8029.  
  8030. OK here it goes. The simple line:
  8031.  
  8032. quit application "Anarchie"
  8033.  
  8034. always works. (with AS 1.1 and Anarchie 1.1.3). Always.
  8035. Why? Because the Sript Editor sends a required core AE to the application.
  8036. In order for any application to be System 7 savvy, it needs to accept
  8037. 'oapp' from 'kAEOpenApplication', 'odoc' from 'kAEOpenDocuments', 'pdoc'
  8038. from 'kAEPrintDocuments' and finally 'quit' from 'kAEQuitApplication'.
  8039. It leaves it up to the application implementation to take any safety
  8040. measures before it quits (ie save file contents, preferences, settings,
  8041. etc.)
  8042. Now applications can implement "quit" as a verb and have it affect more
  8043. distinctive objects than an application. I do not know if that is what
  8044. Peter Lewis was talking about.
  8045.  
  8046. Hope it helps
  8047.  
  8048. ---
  8049. Paki Papaioanu
  8050. 3-5161
  8051. =========================================================================
  8052. Date:         Mon, 28 Mar 1994 06:29:00 PST
  8053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8055. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  8056. Subject:      Re: MacPPP Control 1.1
  8057.  
  8058. >Date:    Sat, 26 Mar 1994 19:02:46 -0500
  8059. >From:    Jay Hebert <jayh@LAISON.W8HD.ORG>
  8060. >Subject: MacPPP Control 1.1
  8061. >
  8062. >I've really enjoyed using MacPPP Control osax in recent weeks, and kudos to
  8063. >its author.
  8064. >
  8065. >Situation:  I have several PPP hosts that I have scripts for.  When I invoke
  8066. >PPP through applescript, I don't seem to have any way to find out which one
  8067. >I'm calling, or to demand which one I call at launch.
  8068. >
  8069. >I opened the osax in the script editor, and It wouldn't appear that there is
  8070. >support for returning the current script, or changing it.  (Although, I'd be
  8071. >happy to be wrong!)  Is there any way, short of a QuickKey hack that opens
  8072. >the ConfigPPP control panel, to do this?
  8073. >
  8074. >I think adding such a thing would increase the usefulness of this osax many
  8075. >times over.
  8076.  
  8077. Your right.  MacPPP Control only allows you to open and close PPP
  8078. connections.  When I released the MacPPP Control addition, I wondered how
  8079. long it would take for this type of request to appear.
  8080.  
  8081. I am planning a new release of MacPPP Control which allows you to choose a
  8082. PPP configuration when opening a connection.  However, like everyone I've
  8083. got other deadlines to meet so I can't provide a date when the software
  8084. will be available.
  8085.  
  8086. -Mark
  8087. =========================================================================
  8088. Date:         Mon, 28 Mar 1994 10:54:22 +0000
  8089. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8090. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8091. From:         Bill Seitz <Bill_Seitz@SCP.COM>
  8092. Subject:      Scripted Ping?
  8093.  
  8094. Is MacTCP Ping scriptable?  Is there any other scriptable app that can
  8095. generate a "ping"?  We have dial-up service for the Internet, so I'd like to
  8096. be able to set up a script scheduled to run once a day to generate a ping so
  8097. our router would dial-up (thus downloading our mail).
  8098. =========================================================================
  8099. Date:         Mon, 28 Mar 1994 14:39:13 EST
  8100. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8101. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8102. From:         William Murphy <wmurphy@CBRC-A12.MGH.HARVARD.EDU>
  8103. Subject:      reading the contents of a text file
  8104.  
  8105. hi,
  8106.  
  8107. if this is a lame question i apologize in advance, but i'm new at this.
  8108.  
  8109. is it possible to read the text of a file into a script?  I want to be able
  8110. to do something like:
  8111.  
  8112. set foo to "the file reads: "
  8113. set bar to get contents of file "here:this.file"
  8114.  
  8115. return foo & bar & "thats all folks..."
  8116. =========================================================================
  8117. Date:         Mon, 28 Mar 1994 15:30:01 -0500
  8118. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8119. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8120. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  8121. Subject:      Re: reading the contents of a text file
  8122.  
  8123. >is it possible to read the text of a file into a script?  I want to be able
  8124. >to do something like:
  8125. >
  8126. >set foo to "the file reads: "
  8127. >set bar to get contents of file "here:this.file"
  8128. >
  8129. >return foo & bar & "thats all folks..."
  8130.  
  8131. Take a look at the "File IO" scripting addition.  It's in the Scripting
  8132. Additions folder in your Extensions folder in the System Folder.  Drag it
  8133. onto the Script Editor to open it's dictionary.
  8134.  
  8135. Steve
  8136.  
  8137. ---------------------
  8138.  jonke@gsfc.nasa.gov
  8139. ---------------------
  8140. =========================================================================
  8141. Date:         Mon, 28 Mar 1994 16:24:38 -0500
  8142. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8143. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8144. From:         Coty Rosenblath <coty@NETCOM.COM>
  8145. Subject:      Example Eudora scripts
  8146.  
  8147. I would dearly love to script my Eudora, but I haven't made much headway.
  8148. Does anyone know of any example scripts that I could look at?
  8149.  
  8150. Thanks in advance,
  8151. Coty
  8152.  
  8153. Coty Rosenblath
  8154. Senior Consultant
  8155. Andersen Consulting
  8156. 100 N. Tryon, Suite 3900
  8157. Charlotte, NC 28202-4000
  8158.  
  8159. e-mail: coty@netcom.com or crosenblath@mcimail.com
  8160. =========================================================================
  8161. Date:         Mon, 28 Mar 1994 17:02:34 -0500
  8162. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8163. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8164. From:         Allan Marcus <allan_marcus@LANL.GOV>
  8165. Subject:      Re: Example Eudora scripts
  8166.  
  8167. >I would dearly love to script my Eudora, but I haven't made much headway.
  8168. >Does anyone know of any example scripts that I could look at?
  8169. >
  8170. >Thanks in advance,
  8171. >Coty
  8172. >
  8173. >Coty Rosenblath
  8174. >Senior Consultant
  8175. >Andersen Consulting
  8176. >100 N. Tryon, Suite 3900
  8177. >Charlotte, NC 28202-4000
  8178. >
  8179. >e-mail: coty@netcom.com or crosenblath@mcimail.com
  8180.  
  8181.  
  8182. I just went through this too.  Here's a script that should get you going.
  8183. Refer to the on line dictionary (via the script editor) for more commands.
  8184.  
  8185. -- drops a message in Eudor's out box
  8186. --Make sure you have Eudore 1.42 or greater
  8187. tell application "Eudora"
  8188.         activate
  8189.         set x to make message InsertHere (end of mailbox "Out" of mail
  8190. folder "")
  8191.         set field "To" of x to "allan_marcus@lanl.gov"
  8192.         set field "Subject" of x to "Subject"
  8193.         set field "" of x to "Body-of-message"
  8194.         queue x QueueType 1
  8195. end tell
  8196.  
  8197.  
  8198. ---------------------------------------
  8199. Allan Marcus
  8200. Los Alamos National Laboratory
  8201. "My opinions are my own, I think..."
  8202.  
  8203. Voice: 505-665-1828
  8204. CIS: 76666,2113
  8205. AppleLink: Allan.Marcus
  8206. e-world/NewtonMail: Allan.M
  8207. InterNet: allan_marcus@lanl.gov    <- note new address (deja vu!)
  8208. ---------------------------------------
  8209. =========================================================================
  8210. Date:         Mon, 28 Mar 1994 17:01:44 -0500
  8211. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8212. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8213. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  8214. Subject:      Q on opening files...
  8215.  
  8216. When I have the following script attached to a button in Frontmost:
  8217.  
  8218. on hilited theObj
  8219.         tell application "Scriptable Text Editor"
  8220.                 open {file "MacintoshHD:Test"}
  8221.         end tell
  8222. end hilited
  8223.  
  8224. things proceed as I would expect.  When the button is pressed, the
  8225. scriptable text editor is activated and the specified file is opened.  The
  8226. problem occurs when the file to be opened is being created or modified on
  8227. the fly.  In my case, I'm reading the file from a server someplace else in
  8228. the network.  Basically, the handler looks like:
  8229.  
  8230. on hilited theObj
  8231.         getFile("/foo.c", {alias "MacintoshHD:"})
  8232.         tell application "Scriptable Text Editor"
  8233.                 open {file "MacintoshHD:Test"}
  8234.         end tell
  8235. end hilited
  8236.  
  8237. In this case, getFile is a routine that grabs the file foo.c from the
  8238. remote server and puts it into a file called "Test" in the specified
  8239. folder.  When this script is executed, I get the following error from the
  8240. finder:
  8241.  
  8242. An error occurred because the original item could not be found.
  8243.  
  8244. even though the scriptable text editor has been able to successfully open
  8245. the file.  I have some theories on what the problem might be, but was
  8246. hoping someone might be able to explain what was going on here.  Thanks,
  8247.  
  8248.                                 -Steve.
  8249.  
  8250.  
  8251. +--------------------------------------------------------------+
  8252. | Steven L. Rohall                                             |
  8253. |                            ________ _        ______  ______  |
  8254. | 55 Walkers Brook Drive        /    / \      /     / /     /  |
  8255. | Reading, MA 01867-3297       /    /___\    /______ /         |
  8256. | Tel: (617)942-2000          /    /     \         //          |
  8257. | Fax: (617)942-7100         /    /       \/______//______/    |
  8258. | slrohall@tasc.com                                            |
  8259. | (MIME-conformant mail welcome.)                              |
  8260. +--------------------------------------------------------------+
  8261. =========================================================================
  8262. Date:         Mon, 28 Mar 1994 14:34:37 -0800
  8263. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8264. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8265. From:         David Ray <daver@NETCOM.COM>
  8266. Subject:      Re: reading the contents of a text file
  8267.  
  8268. >>Is it possible to read the text of a file into a script?  I want to be able
  8269. >>to do something like:
  8270. >>
  8271. >>set foo to "the file reads: "
  8272. >>set bar to get contents of file "here:this.file"
  8273. >>
  8274. >>return foo & bar & "thats all folks..."
  8275. >
  8276. >Take a look at the "File IO" scripting addition.  It's in the Scripting
  8277. >Additions folder in your Extensions folder in the System Folder.  Drag it
  8278. >onto the Script Editor to open it's dictionary.
  8279.  
  8280. I've used this "File IO" scripting addition and it has some pros and cons.
  8281. The disadvantage of it is that it reads one paragraph at a time. To get
  8282. it to read a whole file (with an unknown length of paragraphs) you have
  8283. to do something like:
  8284.  
  8285. set refNum to open file alias "Disk:folder:file" for reading
  8286. try  -- an error will be generated when you get to the EOF
  8287.   repeat forever
  8288.   set newLine to read file refNum
  8289.   set theText to theText & return & newLine
  8290.   end repeat
  8291. on error
  8292. end try
  8293. close file refNum
  8294. set foo to "the file reads: "
  8295. return foo & theText & "thats all folks..."
  8296.  
  8297. The nice thing about File IO osax is that it can operate on files longer
  8298. than 32k. However the text buffer that is storing the contents of theText
  8299. can't go above 32k, possibly much less.
  8300.  
  8301. Another way to do this is to open the file with Scriptable Text Editor,
  8302. copy the contents of the file to a string variable:
  8303.  
  8304. Tell app "Scriptable Text Editor"
  8305.   open a reference to file "Disk:folder:file"
  8306.   set theText to text of window 1
  8307.   quit saving no
  8308. end tell
  8309. set foo to "the file reads: "
  8310. return foo & theText & "thats all folks..."
  8311.  
  8312. This would be A LOT faster than using the File IO osax. However it is limited
  8313. to 32k, and is uglier -- you will see a window open and close on your
  8314. desktop.
  8315.  
  8316. -Dave
  8317. daver@netcom.com
  8318. =========================================================================
  8319. Date:         Mon, 28 Mar 1994 17:48:22 -0500
  8320. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8321. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8322. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  8323. Subject:      Re: Example Eudora scripts
  8324.  
  8325. >I would dearly love to script my Eudora, but I haven't made much headway.
  8326. >Does anyone know of any example scripts that I could look at?
  8327.  
  8328. First, make sure you have the latest version of Eudora, version 1.4.2,
  8329. which has better AppleScript support.
  8330.  
  8331. One of the key things you need to know is how to reference messages.  The
  8332. most important things to know is that the topmost mail folder is "".  So,
  8333. you'd reference a message in your In box in this fashion:
  8334.  
  8335.   message 1 of mailbox "In" of mail folder ""
  8336.  
  8337. Also, if you have created your own mail folders (as opposed to mailboxes),
  8338. then they are in the top most mail folder.  For example, if you have a mail
  8339. folder "Lists" and a mailbox in it called "AppleScript", you'd reference
  8340. the 3rd message in it by saying:
  8341.  
  8342.   message 3 of mailbox "AppleScript" of mail folder "Lists" of mail folder ""
  8343.  
  8344. I'm not sure why, but if you use the following by itself as a reference:
  8345.  
  8346.   message 1
  8347.  
  8348. this will reference the topmost window (even if it ISN'T a message!)  In
  8349. fact, the number you use in this case is irrelavent, you could use: message
  8350. 12343 and it would still be the top most window.
  8351.  
  8352. You reference fields in a message by name, for instance:
  8353.  
  8354.   field "To" of message 1 of mailbox "Out" of mail folder ""
  8355.  
  8356. The field called "" (null string) is the body of the message.  You can only
  8357. set and get the values of fields (including the body) -- you can't
  8358. reference words in fields, so first copy the field to a variable, and then
  8359. play with the words, characters, etc.  The only catch I've run into is that
  8360. if you get a field that has a null value, Eudora will return an error.  You
  8361. can use a "try" to catch the error, but I presume this is a bug?
  8362.  
  8363. To make a new message use:
  8364.  
  8365.   make ObjectClass message InsertHere end of mailbox "Out" of mail folder ""
  8366.  
  8367. Or just:
  8368.  
  8369.   make message InsertHere end of mailbox "Out" of mail folder ""
  8370.  
  8371. You can actually use the more normal word "at" rather then "InsertHere",
  8372. but when you run the script it will change to "InsertHere".  Wierd.
  8373.  
  8374. Hope this helps.
  8375.  
  8376. Steve
  8377.  
  8378. ---------------------
  8379.  jonke@gsfc.nasa.gov
  8380. ---------------------
  8381. =========================================================================
  8382. Date:         Tue, 29 Mar 1994 02:05:43 EST
  8383. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8384. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8385. From:         "William J. Jamison" <jami1@AOL.COM>
  8386. Subject:      Re: reading the contents of a text file
  8387.  
  8388. "Take a look at the ""File IO"" scripting addition.  It's in the Scripting
  8389. "Additions folder in your Extensions folder in the System Folder.  Drag it
  8390. "onto the Script Editor to open it's dictionary.
  8391.  
  8392. I have AS (came with 660 AV and System 7 Pro), but ""File IO"" didn't come
  8393. with either one of them. Is this indicative of a shortcoming in the examples
  8394. dept or the capabilities of my system? Have I been short shrifted? Do you
  8395. have more toys than me Steve?
  8396.  
  8397. Jami1
  8398. (Bill Jamison)  Kelso,  WA
  8399. Old hippies never die.
  8400. =========================================================================
  8401. Date:         Tue, 29 Mar 1994 02:05:55 EST
  8402. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8403. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8404. From:         "William J. Jamison" <jami1@AOL.COM>
  8405. Subject:      Re: Q on opening files...
  8406.  
  8407. "The problem occurs when the file to be opened is being created or modified
  8408. on
  8409. "the fly.  In my case, I'm reading the file from a server someplace else in
  8410. "the network.  Basically, the handler looks like:
  8411.  
  8412. "on hilited theObj
  8413. "        getFile("/foo.c", {alias "MacintoshHD:"})
  8414. "        tell application "Scriptable Text Editor"
  8415. "                open {file "MacintoshHD:Test"}
  8416. "        end tell
  8417. "end hilited
  8418.  
  8419. "In this case, getFile is a routine that grabs the file foo.c from the
  8420. "remote server and puts it into a file called "Test" in the specified
  8421. "folder.  When this script is executed, I get the following error from the
  8422. "finder:
  8423.  
  8424. "An error occurred because the original item could not be found.
  8425.  
  8426. Sounds like Frontmost has created a _temporary_ file and indeed it is telling
  8427. you the truth, it's scratch, in limbo, kind of like here and not here at the
  8428. same time. The phantom file syndrome. Virtual file glitch problem? A bug?
  8429. Perhaps you need to set file type or creator?
  8430.  
  8431. Jami1
  8432. (Bill Jamison)  Kelso,  WA
  8433. Old hippies never die.
  8434. =========================================================================
  8435. Date:         Tue, 29 Mar 1994 02:06:05 EST
  8436. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8437. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8438. From:         "William J. Jamison" <jami1@AOL.COM>
  8439. Subject:      Re: reading the contents of a text file
  8440.  
  8441. "Another way to do this is to open the file with Scriptable Text Editor,
  8442. "copy the contents of the file to a string variable:
  8443.  
  8444. "Tell app "Scriptable Text Editor"
  8445. "  open a reference to file "Disk:folder:file"
  8446. "  set theText to text of window 1
  8447. "  quit saving no
  8448. "end tell
  8449. "set foo to "the file reads: "
  8450. "return foo & theText & "thats all folks..."
  8451.  
  8452. "This would be A LOT faster than using the File IO osax. However it is
  8453. limited
  8454. "to 32k, and is uglier -- you will see a window open and close on your
  8455. "desktop.
  8456.  
  8457. "-Dave
  8458. "daver@netcom.com
  8459.  
  8460. I vote for faster and ugliubbly.
  8461.  
  8462. Jami1
  8463. (Bill Jamison)  Kelso,  Wa
  8464. Old ugly hippies don't run very fast.
  8465. =========================================================================
  8466. Date:         Tue, 29 Mar 1994 09:42:33 +0100
  8467. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8468. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8469. From:         Johan Solve <johan.solve@ITN.HH.SE>
  8470. Subject:      Re: Example Eudora scripts
  8471.  
  8472. > >I would dearly love to script my Eudora, but I haven't made much headway.
  8473. > >Does anyone know of any example scripts that I could look at?
  8474.  
  8475. I gaught Jon Pugh's script to sort incoming mail, and imporved it so it
  8476. doesn't process mail in reverse order (but still SOOOO slow...)
  8477.  
  8478. But when the mail is sorted, I have the hardest time to find the unread
  8479. mail in the different mailboxes (gee, I think I have overused the idea of
  8480. different mail boxes - hard to get an overview...)
  8481. The best would of course be if Eudora had a marker in the Mailbox menu to
  8482. indicate where there are unread mail (how 'bout that, Steve Dorner?). The
  8483. next best would be if the command-right arrow would jump to the next unread
  8484. message, no matter in which mailbox it is. Currently, it only jumps to the
  8485. next unread message in the current mailbox.
  8486.  
  8487. The third best thing would be to have a script find the next unread
  8488. message. Does anyone have a script for this? I haven't come far enough in
  8489. AppleScripting to feel confident in making a script like this.
  8490.  
  8491.  
  8492. My modified mail sorting script follows (credits to Jon Pugh for the
  8493. original script version). As usual, wrapped lines end with --.
  8494.  
  8495.  
  8496. tell application "Eudora1.4.2"
  8497.     --activate  -- disabled, faster if script is in foreground
  8498.     set n to number of message of mailbox "In" of mail folder ""
  8499.     set i to 1 -- use separate counter since the pointer should only
  8500.                -- increase if we don't move a message
  8501.     repeat with j from 1 to n
  8502.         try
  8503.             set itsTo to field "To" of message i of mailbox "In" of --
  8504.             mail folder ""
  8505.         on error
  8506.             set itsTo to ""
  8507.         end try
  8508.         try
  8509.             set itsCC to field "cc" of message i of mailbox "In" of --
  8510.             mail folder ""
  8511.         on error
  8512.             set itsCC to ""
  8513.         end try
  8514.         try
  8515.             set itssender to field "sender" of message i of mailbox --
  8516.             "In" of mail folder ""
  8517.         on error
  8518.             set itssender to ""
  8519.         end try
  8520.         set itsTo to itsTo & return & itsCC & return & itssender
  8521.         if itsTo contains "applescript%" or itsTo contains --
  8522.         "MACSCRPT%" then
  8523.             move message i of mailbox "In" of mail folder "" --
  8524.             inserthere end of mailbox "AppleScript" of mail folder ""
  8525.         else if itsTo contains "YACHT-L%" then
  8526.             move message i of mailbox "In" of mail folder "" --
  8527.             inserthere end of mailbox "yacht and sail" of mail folder ""
  8528.         else if itsTo contains "FMPRO-L%" then
  8529.             move message i of mailbox "In" of mail folder "" --
  8530.             inserthere end of mailbox "FileMaker Pro" of mail folder ""
  8531.         else if itsTo contains "info-mac digest" then
  8532.             move message i of mailbox "In" of mail folder "" --
  8533.             inserthere end of mailbox "info-mac digest" of mail folder ""
  8534.         else
  8535.             set i to i + 1 -- no message moved, increase pointer
  8536.             if i > number of message of mailbox "In" of mail folder --
  8537.             "" then exit repeat -- moved all messages already
  8538.         end if
  8539.     end repeat
  8540.     activate -- put Eudora to front to show we're done
  8541. end tell
  8542.  
  8543. _______________________________________________________________________
  8544.           "
  8545.    JOHAN SOLVE                   Department of Science and Technology
  8546.    <johan.solve@itn.hh.se>       Halmstad University, Sweden
  8547. =========================================================================
  8548. Date:         Tue, 29 Mar 1994 09:22:37 -0500
  8549. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8550. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8551. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  8552. Subject:      Re: Q on opening files...
  8553.  
  8554. >Sounds like Frontmost has created a _temporary_ file and indeed it is telling
  8555. >you the truth, it's scratch, in limbo, kind of like here and not here at the
  8556. >same time. The phantom file syndrome. Virtual file glitch problem? A bug?
  8557. >Perhaps you need to set file type or creator?
  8558. >
  8559. >Jami1
  8560. >(Bill Jamison)  Kelso,  WA
  8561. >Old hippies never die.
  8562.  
  8563. Thanks for the reply.  I haven't heard much from anyone else yet, so I'm
  8564. still pretty much at a loss.  I may be able to find a workaround, but if
  8565. AppleScript is going to take off big time, there will have to be fewer
  8566. hacks....  Thanks again,
  8567.  
  8568.                                 -Steve.
  8569. =========================================================================
  8570. Date:         Tue, 29 Mar 1994 09:26:06 -0500
  8571. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8572. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8573. From:         "Steven L. Rohall" <slrohall@TASC.COM>
  8574. Subject:      Re: Q on opening files...
  8575.  
  8576. Sorry about my last posting to the mailing list.  I intended it to go to
  8577. Bill Jamison directly, but blindly used "reply" in my mailer.
  8578.  
  8579. My comment on "hacks" still stands, though.  :-)
  8580.  
  8581.                                 -Steve.
  8582.  
  8583. +--------------------------------------------------------------+
  8584. | Steven L. Rohall                                             |
  8585. |                            ________ _        ______  ______  |
  8586. | 55 Walkers Brook Drive        /    / \      /     / /     /  |
  8587. | Reading, MA 01867-3297       /    /___\    /______ /         |
  8588. | Tel: (617)942-2000          /    /     \         //          |
  8589. | Fax: (617)942-7100         /    /       \/______//______/    |
  8590. | slrohall@tasc.com                                            |
  8591. | (MIME-conformant mail welcome.)                              |
  8592. +--------------------------------------------------------------+
  8593. =========================================================================
  8594. Date:         Tue, 29 Mar 1994 08:40:26 -0500
  8595. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8596. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8597. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  8598. Subject:      Re> Q on opening files...
  8599.  
  8600. >on hilited theObj
  8601. >        getFile("/foo.c", {alias "MacintoshHD:"})
  8602. >        tell application "Scriptable Text Editor"
  8603. >                open {file "MacintoshHD:Test"}
  8604. >        end tell
  8605. >end hilited
  8606. >
  8607. >In this case, getFile is a routine that grabs the file foo.c from the
  8608. >remote server and puts it into a file called "Test" in the specified
  8609. >folder.  When this script is executed, I get the following error from the
  8610. >finder:
  8611.  
  8612. >An error occurred because the original item could not be found.
  8613.  
  8614. I would like to see the getFile routine. I suspect that that's where your
  8615. problem is. What exactly does it do, and how? It sounds as if you're deleting
  8616. a temp file, or maybe getting to the "open" in the tell statement *before*
  8617. the getFile routine is finished. Just a guess.
  8618.  
  8619. Jay
  8620. +---------------------------------------+----------------------------------+
  8621. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  8622. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  8623. |   | ----------+ Development Training  |                  martin@aidt.edu |
  8624. |   +---------------------------------- | (But what do they know?)         |
  8625. +---------------------------------------+----------------------------------+
  8626. =========================================================================
  8627. Date:         Tue, 29 Mar 1994 10:04:34 EST
  8628. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8629. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8630. From:         Matt Pauker <mattp26745@AOL.COM>
  8631. Subject:      Re: reading the contents of a text file
  8632.  
  8633. >I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
  8634. >with either one of them. Is this indicative of a shortcoming in >the
  8635. examples
  8636. >dept or the capabilities of my system? Have I been short >shrifted? Do you
  8637. >have more toys than me Steve?
  8638.  
  8639. System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
  8640. AppleScript 1.1 (The Scriptable Finder).  I don't have AppleScript 1.1
  8641. (Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
  8642. in there.
  8643.  
  8644. Matt P.
  8645. mattp26745@aol.com
  8646. =========================================================================
  8647. Date:         Tue, 29 Mar 1994 09:32:51 -0600
  8648. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8649. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8650. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8651. Subject:      Re: reading the contents of a text file
  8652. In-Reply-To:  Your message of "Tue, 29 Mar 94 10:04:34 EST"
  8653.  
  8654. Your message dated: Tue, 29 Mar 94 10:04:34 EST
  8655. >>I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
  8656. >>with either one of them. Is this indicative of a shortcoming in >the
  8657. >examples
  8658. >>dept or the capabilities of my system? Have I been short >shrifted? Do you
  8659. >>have more toys than me Steve?
  8660. >
  8661. >System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
  8662. >AppleScript 1.1 (The Scriptable Finder).  I don't have AppleScript 1.1
  8663. >(Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
  8664. >in there.
  8665.  
  8666. Nope. The File IO osax is part of the Script Tools collection written by Mark
  8667. Alldritt. You can find it--and a lot of other cool stuff--on
  8668. gaea.kgs.ukans.edu. Check out the applescript directory.
  8669.  
  8670. Happy scripting.
  8671.  
  8672. pf
  8673.  
  8674.  
  8675. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8676. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  8677.  
  8678. "Bad spellers of the world, untie!"
  8679.                                         --Graffito
  8680. =========================================================================
  8681. Date:         Tue, 29 Mar 1994 10:38:54 -0500
  8682. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8683. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8684. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  8685. Subject:      Re: reading the contents of a text file
  8686.  
  8687. >I have AS (came with 660 AV and System 7 Pro), but ""File IO"" didn't come
  8688. >with either one of them. Is this indicative of a shortcoming in the examples
  8689. >dept or the capabilities of my system? Have I been short shrifted? Do you
  8690. >have more toys than me Steve?
  8691.  
  8692. Hmm....  I'm not sure - I've got the File IO addition.  I have AS 1.1, do
  8693. you have version 1.0?
  8694.  
  8695. Steve
  8696.  
  8697. ---------------------
  8698.  jonke@gsfc.nasa.gov
  8699. ---------------------
  8700. =========================================================================
  8701. Date:         Tue, 29 Mar 1994 11:13:26 -0500
  8702. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8703. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8704. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  8705. Subject:      Re: reading the contents of a text file
  8706. In-Reply-To:  <no.id> from "Matt Pauker" at Mar 29, 94 10:04:34 am
  8707.  
  8708. --Matt Pauker wrote:
  8709. >
  8710. >System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
  8711. >AppleScript 1.1 (The Scriptable Finder).
  8712.  
  8713.     AppleScript 1.1 and the Scriptable Finder really have nothing to do
  8714. with each other, except for the fact that you would use AppleScript to
  8715. access the Scriptable Finder. The SF isn't a released product, however,
  8716. you can get the Golden Master (read as final un-released version) of the
  8717. Finder Scripting Extension, which works with Finder 7.1.2 and up, if you
  8718. purchase the AppleScript SDK from APDA ($199). This extension patches
  8719. the Finder's AETE resource with a full compliment of Apple Event calls.
  8720. This summer when System 7.5 is released, I expect the Finder Scripting
  8721. Extension to disappear in favor of a fully scriptable, recordable, and
  8722. hopfully, attachable Finder.
  8723.  
  8724. >I don't have AppleScript 1.1 (Yet...It's coming Wednesday), but I bet
  8725. >that the "File IO" osax is probably in there.
  8726.  
  8727.     As has alread been stated, the File IO osax is part of the Script
  8728. Tools osaxen suit that you can find, along with a whole bunch of other
  8729. really cool scripting stuff at: ftp://gaea.kgs.ukans.edu/applescript.
  8730.  
  8731. -Hades
  8732. =========================================================================
  8733. Date:         Tue, 29 Mar 1994 12:04:47 -0500
  8734. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8735. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8736. From:         Graham Heyes <heyes@DAHP1.CEBAF.GOV>
  8737. Subject:      Recording events and other issues...
  8738.  
  8739. I have "The Tao of AppleScript" and most of the additions from gaea and have
  8740. been happily writing scripts for a month or so. (life with a Mac is becoming
  8741. much nicer!) "The Tao" mentions that one of the best ways to learn more about
  8742. the syntax of the language is to press the record button on the Script Editor
  8743. and record a script or two. My problem is that absolutely nothing happens when
  8744. I hit the button appart from a flashing Icon in the top left of the screen. I
  8745. can open and close applications, move windows, open files from apps etc etc and
  8746. nothing appears in the script window of the script editor. I've looked through
  8747. "The Tao" and info on using the Record feature is in short supply. I am running
  8748. 7.1 on a Daystar accelerated Mac II with 20Mb of physical memory Ram Doubled to
  8749. 40Mb, lots of extensions. The main point is that every other feature of
  8750. AppleScript as described in "The Tao" works perfectly. My only guess is that
  8751. the apps I am working with are not recordable, Excel, Word, WordPerfect 3,
  8752. FileMakerPRO, event the scriptable text editor all give nothing...
  8753.  
  8754.  
  8755. ... On a second track, what is the best way to move data from a doc opened by
  8756. one app to a doc opened by the other? I wrote a script to copy an address from
  8757. a FM PRO address book into a variable then tried to insert it at the top of a
  8758. letter opened with WordPerfect 3.0. I thought the easiest way would be to get
  8759. the data onto the clipboard then send paste to WP 3.0 but paste wasn't in it's
  8760. dictionary.Iin the end I used the AutoType scripting addition to send a
  8761. command-v. It works but it doesn't look nice. This must be a thing which get's
  8762. done all the time but I'm sort on examples and "The Tao of applescript" is
  8763. vague on the subject.
  8764.  
  8765.  
  8766.                 Graham
  8767.  
  8768. -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
  8769. Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
  8770. =========================================================================
  8771. Date:         Tue, 29 Mar 1994 11:36:34 -0500
  8772. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8773. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8774. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  8775. Subject:      Re> Recording events
  8776.  
  8777. Most applications are not recordable yet. This is because the application
  8778. must be "factored" so that the user interface generates apple events to
  8779. itself to perform the various application functions (I don't know if this is
  8780. exactly correct, but it's close). This can be a daunting task for existing
  8781. applications. However, the scriptable text editor is recordable. I don't know
  8782. why it isn't recording your events. Anyone else have any ideas?
  8783.  
  8784. Jay
  8785. +---------------------------------------+----------------------------------+
  8786. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  8787. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  8788. |   | ----------+ Development Training  |                  martin@aidt.edu |
  8789. |   +---------------------------------- |                                  |
  8790. +---------------------------------------+----------------------------------+
  8791. =========================================================================
  8792. Date:         Tue, 29 Mar 1994 11:38:20 -0600
  8793. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8794. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8795. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8796. Subject:      Re: Recording events and other issues...
  8797. In-Reply-To:  Your message of "Tue, 29 Mar 94 12:04:47 EST"
  8798.  
  8799. Graham,
  8800.  
  8801. >I have "The Tao of AppleScript" and most of the additions from gaea and have
  8802. >been happily writing scripts for a month or so. (life with a Mac is becoming
  8803. >much nicer!) "The Tao" mentions that one of the best ways to learn more about
  8804. >the syntax of the language is to press the record button on the Script Editor
  8805. >and record a script or two. My problem is that absolutely nothing happens when
  8806. >I hit the button appart from a flashing Icon in the top left of the screen. I
  8807. >can open and close applications, move windows, open files from apps etc etc
  8808. >and nothing appears in the script window of the script editor. I've looked
  8809. >looked through "The Tao" and info on using the Record feature is in short
  8810. >I am running a Daystar accelerated Mac II with 20Mb of physical memory Ram
  8811. >Doubled to 40Mb, lots of extensions. The main point is that every other
  8812. >feature of AppleScript as described in "The Tao" works perfectly. My only
  8813. >guess is that the apps I am working with are not recordable, Excel, Word,
  8814. >WordPerfect 3, >FileMakerPRO, event the scriptable text editor all give
  8815.  nothing...
  8816.  
  8817. Right you are. I think you can record StuffIt Lite. You can also record the
  8818. Scriptable Text Editor. And the Scriptable Finder (if you have the developer's
  8819. kit or a beta copy of the System 7.5 software.
  8820.  
  8821.  
  8822. Since I'm sitting at a non-Mac workstation and my memory is weak, I'll let
  8823. someone else tackle the FMPro stuff--though my guess is that you need to
  8824. format the clipboard contents.
  8825.  
  8826. pf
  8827.  
  8828.  
  8829. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8830. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  8831.  
  8832. "Bad spellers of the world, untie!"
  8833.                                         --Graffito
  8834. =========================================================================
  8835. Date:         Tue, 29 Mar 1994 11:40:09 -0600
  8836. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8837. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8838. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8839. Subject:      Re: Re> Recording events
  8840. In-Reply-To:  Your message of "Tue, 29 Mar 94 11:36:34 EST"
  8841.  
  8842. >Most applications are not recordable yet. This is because the application
  8843. >must be "factored" so that the user interface generates apple events to
  8844. >itself to perform the various application functions (I don't know if this is
  8845. >exactly correct, but it's close). This can be a daunting task for existing
  8846. >applications. However, the scriptable text editor is recordable. I don't know
  8847. >why it isn't recording your events. Anyone else have any ideas?
  8848. >
  8849.  
  8850. You know, I have a script from Ed Lai that checks the contents of your hard
  8851. drive and builds a list of scriptable applications (there is a Frontier
  8852. version of this script somewhere. John?) When I get home tonight, I'll upload
  8853. it to gaea.
  8854.  
  8855. pf
  8856.  
  8857.  
  8858. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8859. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  8860.  
  8861. "Bad spellers of the world, untie!"
  8862.                                         --Graffito
  8863. =========================================================================
  8864. Date:         Tue, 29 Mar 1994 11:50:08 -0500
  8865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8867. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  8868. Subject:      Re> Re: Re> Recording events
  8869.  
  8870. >You know, I have a script from Ed Lai that checks the contents of your hard
  8871. >drive and builds a list of scriptable applications (there is a Frontier
  8872. >version of this script somewhere. John?) When I get home tonight, I'll
  8873. upload
  8874. >it to gaea.
  8875.  
  8876. I believe I saw that somewhere. But remember (just for everyone's benefit),
  8877. applications can be scriptable but not recordable!
  8878.  
  8879. Jay
  8880. +---------------------------------------+----------------------------------+
  8881. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  8882. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  8883. |   | ----------+ Development Training  |                  martin@aidt.edu |
  8884. |   +---------------------------------- |                                  |
  8885. +---------------------------------------+----------------------------------+
  8886. =========================================================================
  8887. Date:         Tue, 29 Mar 1994 13:10:13 -0500
  8888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8890. From:         Graham Heyes <heyes@DAHP1.CEBAF.GOV>
  8891. Subject:      Re: Recording events and other issues... Thanks for the replies
  8892.               to my posting. I guess it is still early days for
  8893.  
  8894. AppleScript so most thinks aren't yet scriptable. I will try some more with
  8895. recording the "Scriptable Text Editor" it may be that the things I tried on it
  8896. were not recordable but others will be. I did have to re-format the text from
  8897. FM PRO by socking it into an applescript variable then spitting it out via
  8898. AutoType. All this use of AutoType is not nice, maybe some day soon more things
  8899. will be directly scriptable and I can get rid of the hacks. One frustrating
  8900. thing is that some things like WordPerfect 3.0 seem to support scripting for
  8901. bizzare actions but not for simple thinks like cut, copy and paste which I
  8902. would have thought would be the most obvious for a word processor.
  8903.  
  8904.                 Graham
  8905.  
  8906. -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
  8907. Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
  8908. =========================================================================
  8909. Date:         Tue, 29 Mar 1994 10:13:17 -0800
  8910. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8911. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8912. From:         Mike Crawford <crawford@SCIPP.UCSC.EDU>
  8913. Subject:      Re: a request for contributions
  8914. In-Reply-To:  <01HACZQ112YQ0031KT@SERV02.SLAC.STANFORD.EDU> from "Fred Terry"
  8915.               at Mar 24, 94 08:42:54 pm
  8916.  
  8917. Fred,
  8918.  
  8919. A little bird told me that the next revision of Hypercard will support
  8920. Word Services.
  8921.  
  8922. I haven't seen it with my own eyes yet, but the folks at Apple tell me that
  8923. it is working in Hypercard.
  8924.  
  8925. It might be worth mentioning in your book.  I am concerned, though, that
  8926. if word leaks out too fast, the Apple execs will be annoyed and maybe take
  8927. it back out.  It wasn't really a management decision that got Word Services
  8928. in - I just sent the WS SDK to one of the hypercard engineers, and he
  8929. just stuck it in.  He did get approval from the product manager for this,
  8930. but I think that's as high up as it went.
  8931.  
  8932. Mike Crawford
  8933. working software
  8934. crawford@scipp.ucsc.edu
  8935.  
  8936. (PS - I think you still have my swiss address in your mailing list.)
  8937. =========================================================================
  8938. Date:         Tue, 29 Mar 1994 13:19:04 U
  8939. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8940. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8941. From:         Penelope Jones <penjones@OTC.FSU.EDU>
  8942. Subject:      Updating Filemaker Database
  8943.  
  8944. Updating Filemaker Databases
  8945. I have two copies of a database.  One copy is hosted by an Apple WorkGroup
  8946. Server 95, and the other resides on a Duodock 230.  I need to have the duodock
  8947. login as a guest of the server, get any new records and/or update any existing
  8948. records.  This needs to be accomplished unattended, at night and across a
  8949. network.  I just received my copy of applescript, so I'm just beginning.  Any
  8950. help would be greatly appreciated.
  8951.  
  8952. ********************************************************************************
  8953. Penelope Jones                             Internet:  penjones@otc.fsu.edu
  8954. Florida State University                   AT&Tnet:   (904) 644-PENY
  8955. Telecommunications, B-72                   FAXnet:    (904) 644-4554
  8956. Tallahassee, FL 32306-2035
  8957.  
  8958. ********************************************************************************
  8959. =========================================================================
  8960. Date:         Tue, 29 Mar 1994 13:24:29 -0600
  8961. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8962. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8963. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8964. Subject:      Re: Updating Filemaker Database
  8965. In-Reply-To:  Your message of "Tue, 29 Mar 94 13:19:04 +0800"
  8966.  
  8967. Penelope,
  8968.  
  8969. >Updating Filemaker Databases
  8970. >I have two copies of a database.  One copy is hosted by an Apple WorkGroup
  8971. >Server 95, and the other resides on a Duodock 230.  I need to have the duodock
  8972. >login as a guest of the server, get any new records and/or update any existing
  8973. >records.  This needs to be accomplished unattended, at night and across a
  8974. >network.  I just received my copy of applescript, so I'm just beginning.  Any
  8975. >help would be greatly appreciated.
  8976. >
  8977.  
  8978. Check out the file
  8979. ftp://gaea.kgs.ukans.edu/applescript/scripts/FileMaker_&_AppleScript.sea.hqx.
  8980. It contains at least one script that shows you how to move records from one
  8981. database to the other. I think there is also a script for removing duplicates.
  8982.  
  8983. Enjoy.
  8984.  
  8985. pf
  8986.  
  8987.  
  8988. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  8989. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  8990.  
  8991. "Bad spellers of the world, untie!"
  8992.                                         --Graffito
  8993. =========================================================================
  8994. Date:         Tue, 29 Mar 1994 14:46:51 -0500
  8995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8997. From:         Allan Marcus <allan_marcus@LANL.GOV>
  8998. Subject:      What's Word Services?
  8999.  
  9000. What are Word Srevices?
  9001.  
  9002. Thanks,
  9003.  
  9004.  
  9005. ---------------------------------------
  9006. Allan Marcus
  9007. Los Alamos National Laboratory
  9008. "My opinions are my own, I think..."
  9009.  
  9010. Voice: 505-665-1828
  9011. CIS: 76666,2113
  9012. AppleLink: Allan.Marcus
  9013. e-world/NewtonMail: Allan.M
  9014. InterNet: allan_marcus@lanl.gov    <- note new address (deja vu!)
  9015. ---------------------------------------
  9016. =========================================================================
  9017. Date:         Tue, 29 Mar 1994 12:29:04 -0800
  9018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9020. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9021. Subject:      Re: Re> Recording events
  9022.  
  9023. >You know, I have a script from Ed Lai that checks the contents of your hard
  9024. >drive and builds a list of scriptable applications (there is a Frontier
  9025. >version of this script somewhere. John?) When I get home tonight, I'll upload
  9026. >it to gaea.
  9027.  
  9028. Fred...the Frontier version is (on CompuServe, at GO USERLAND):
  9029.  
  9030. Library #08  Name:  From UserLand
  9031. Uploaded by:  76244,120 [Dave Winer [UserLand SW]]  Date:  5/20/93
  9032.  
  9033. Name:  AETE.SIT
  9034. Size:  2304 bytes  Downloads:  111  Type:  binary
  9035. Keywords:  FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
  9036.  
  9037.      This script travels thru the folder it was launched from searching for
  9038. applications that have 'aete' resources. It creates a folder that contains
  9039. aliases to all these apps. The presence of an aete resource indicates that
  9040. the application can be scripted, either with Frontier or AppleScript.
  9041. Requires Frontier or Frontier Runtime 2.0. Packed with StuffIt 3.0. DW
  9042.  
  9043.  
  9044. I don't have it handy here...say the word and I'll download it.  Note that
  9045. a few applications can be scripted with Frontier but do not contain 'aete'
  9046. resources (MacWrite Pro 1.0 is the most interesting example, since it was
  9047. released nearly the same week as Apple's "stealth" release of AppleScript
  9048. last Spring.  The current MacWrite Pro (1.5) has an 'aete' and more
  9049. scripting support).
  9050.  
  9051. --John
  9052.  
  9053. --
  9054. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9055. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9056. =========================================================================
  9057. Date:         Tue, 29 Mar 1994 12:28:59 -0800
  9058. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9059. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9060. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9061. Subject:      Re: Recording events and other issues...
  9062.  
  9063. At 12:04 3/29/94 -0500, Graham Heyes wrote:
  9064. >... On a second track, what is the best way to move data from a doc opened by
  9065. >one app to a doc opened by the other? I wrote a script to copy an address from
  9066. >a FM PRO address book into a variable then tried to insert it at the top of a
  9067. >letter opened with WordPerfect 3.0. I thought the easiest way would be to get
  9068. >the data onto the clipboard then send paste to WP 3.0 but paste wasn't in it's
  9069. >dictionary.Iin the end I used the AutoType scripting addition to send a
  9070. >command-v. It works but it doesn't look nice. This must be a thing which get's
  9071. >done all the time but I'm sort on examples and "The Tao of applescript" is
  9072. >vague on the subject.
  9073.  
  9074. Best way?  I dunno.  A working way to move data (in this case to the very
  9075. beginning of WordPerfect's frontmost document):
  9076.  
  9077. tell application "FileMaker Pro"
  9078.     set temp to Cell "x" of Record 2
  9079. end tell
  9080.  
  9081. tell application "WordPerfect"
  9082.     copy first character of document 1 to kludge
  9083.     copy temp & return & kludge to before first character of document 1
  9084. end tell
  9085.  
  9086. The copy to kludge and inclusion of kludge in what is copied into the
  9087. document is a response to what appears to be a bug in WordPerfect
  9088. (3.0...one of many related to scripting support):  The copy "to before
  9089. first character" acts to replace the first character.
  9090.  
  9091. -------
  9092. Regarding the clipboard:  The application you copy from must be the
  9093. frontmost application when you do a copy, and the application you paste
  9094. into must be the frontmost application when you do the paste.  Use activate
  9095. as necessary to achieve that.  That's how the system scrap (aka Clipboard)
  9096. works on the Mac, unfortunately...blame the premature and unofficial
  9097. release of "Switcher" years ago.
  9098.  
  9099.    --John
  9100.  
  9101. PS...result of the above script:
  9102.  
  9103.   'Twas brillig and the slithy toves
  9104.   Did gyre and gymbol in the wabe
  9105.   All mimsy were the borogoves
  9106.   And the momrath outgabe.
  9107.   This is a test.  It is what was here before I put in what comes before.
  9108.  
  9109.  
  9110. --
  9111. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9112. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9113. =========================================================================
  9114. Date:         Tue, 29 Mar 1994 14:37:29 -0600
  9115. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9116. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9117. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9118. Subject:      Re: Re> Recording events
  9119. In-Reply-To:  Your message of "Tue, 29 Mar 94 12:29:04 PST"
  9120.  
  9121. >>You know, I have a script from Ed Lai that checks the contents of your hard
  9122. >>drive and builds a list of scriptable applications (there is a Frontier
  9123. >>version of this script somewhere. John?) When I get home tonight, I'll upload
  9124. >>it to gaea.
  9125. >
  9126. >Fred...the Frontier version is (on CompuServe, at GO USERLAND):
  9127. >
  9128. >Library #08  Name:  From UserLand
  9129. >Uploaded by:  76244,120 [Dave Winer [UserLand SW]]  Date:  5/20/93
  9130. >
  9131. >Name:  AETE.SIT
  9132. >Size:  2304 bytes  Downloads:  111  Type:  binary
  9133. >Keywords:  FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
  9134. >
  9135. >     This script travels thru the folder it was launched from searching for
  9136. >applications that have 'aete' resources. It creates a folder that contains
  9137. >aliases to all these apps. The presence of an aete resource indicates that
  9138. >the application can be scripted, either with Frontier or AppleScript.
  9139. >Requires Frontier or Frontier Runtime 2.0. Packed with StuffIt 3.0. DW
  9140. >
  9141.  
  9142. Ah, thanks John. You can find it at
  9143. ftp://gaea.kgs.ukans.edu/frontier/findAETEs.sit.hqx. I was pretty sure I'd
  9144. already downloaded it, but couldn't remember the name.
  9145.  
  9146. pf
  9147.  
  9148.  
  9149. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9150. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  9151.  
  9152. "Bad spellers of the world, untie!"
  9153.                                         --Graffito
  9154. =========================================================================
  9155. Date:         Tue, 29 Mar 1994 16:37:10 EST
  9156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9158. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  9159. Subject:      MS: ADMIN
  9160.  
  9161. Just time for another re-post of the official MacScripting "Three Address You
  9162. Need To Know(TM)"
  9163.  
  9164. Read it and weep.
  9165.  
  9166. -A
  9167.  
  9168. -------------
  9169.  
  9170. * LISTSERV@dartmouth.edu
  9171.     the master controller. Mail is handled by computer
  9172.     so you have a limited set of commands you can send it.
  9173.     (Sending the HELP command will get you basics on this
  9174.     including instructions on how to sign off the list and
  9175.     set basic options for yourself like whether you want to
  9176.     receive the list in digest format or not)
  9177.  
  9178. * MacScripting-Request@dartmouth.edu
  9179.     Fred Terry and Andy J. Williams, the list administrators.
  9180.     We can be contacted when you have a problem with the LISTSERV
  9181.     program above or when you have any administrative questions.
  9182.  
  9183. * MacScripting@dartmouth.edu
  9184.     the distribution list. Mail sent here goes to
  9185.     all the recipients.
  9186. =========================================================================
  9187. Date:         Tue, 29 Mar 1994 17:03:35 -0500
  9188. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9189. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9190. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  9191. Subject:      Example Excel AppleScripts?
  9192.  
  9193. Does anyone have any examples of AppleScripting Excel that I could look at?
  9194. I looked on gaea, but there were no Excel AppleScripts there.  Also, are
  9195. there any guides available for AppleScripting Excel?  The document
  9196. mentioned in the Excel manual seems to be oriented toward AppleEvents, as
  9197. opposed to AppleScript (i.e. low level).
  9198.  
  9199. Steve
  9200.  
  9201. ---------------------
  9202.  jonke@gsfc.nasa.gov
  9203. ---------------------
  9204. =========================================================================
  9205. Date:         Tue, 29 Mar 1994 17:23:19 -0500
  9206. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9207. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9208. From:         Stephen Jonke <jonke@GSFC.NASA.GOV>
  9209. Subject:      How do you read an apps dictionary?
  9210.  
  9211. I could use some basic help on how you read/interprete an applications
  9212. dictionary.  For example, how do I figure out the use of the "Range" class
  9213. in Excel by looking at it's definition?  Here it is:
  9214.  
  9215.   Class Range: A range of spreadsheet cells
  9216.   Elements:
  9217.           Cell by numeric index, by name
  9218.           Column by numeric index, by name
  9219.           Row by numeric index
  9220.   Properties:
  9221.   [various properties here - deleted for brevity]
  9222.  
  9223. How do I determine by looking at the above how to reference a range?  How
  9224. do I know what I can do with it?  For instance, can I set the values of the
  9225. cells in a range?
  9226.  
  9227. How about something as "simple" as selection-object:
  9228.  
  9229.   Class selection-object: the selection visible to the user
  9230.   Properties:
  9231.           contents  type class  [r/o]  -- the contents of the selection
  9232.  
  9233. How do I reference the current selection?  How do I determine this from the
  9234. dictionary?
  9235.  
  9236. Also, the list of properties seems straight forward, but I'm not sure I
  9237. understand the list of elements.  Is it a list of things that CAN be part
  9238. of the object, or is a list of things that are a part of the object and the
  9239. exact number of them?  I would think that a "range" would consist of two
  9240. cell references, yet it's only listed once in the elements.  Basically, I'm
  9241. confused!  :)
  9242.  
  9243. Steve
  9244.  
  9245. ---------------------
  9246.  jonke@gsfc.nasa.gov
  9247. ---------------------
  9248. =========================================================================
  9249. Date:         Tue, 29 Mar 1994 18:24:31 -0500
  9250. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9251. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9252. From:         Beef jerky? <john@ASTRO.OCIS.TEMPLE.EDU>
  9253. Subject:      Re: Updating Filemaker Database
  9254. In-Reply-To:  <9403291926.AA03191@astro.ocis.temple.edu>
  9255.  
  9256. On Tue, 29 Mar 1994, Fred Terry wrote:
  9257.  
  9258. > >Updating Filemaker Databases
  9259. > >I have two copies of a database.  One copy is hosted by an Apple WorkGroup
  9260. > >Server 95, and the other resides on a Duodock 230.  I need to have the duodoc
  9261. k
  9262. > >login as a guest of the server, get any new records and/or update any existin
  9263. g
  9264. > >records.  This needs to be accomplished unattended, at night and across a
  9265. > >network.  I just received my copy of applescript, so I'm just beginning.  Any
  9266. > >help would be greatly appreciated.
  9267.  
  9268. Also, stop what you are working on an dfind out if you have FileMaker Pro
  9269. version 2.1v2. The v2 is important, as apparently it has a much more complete
  9270. dictionary (from what I have heard).
  9271.  
  9272. For example, in v1 there is an "open database" command, but no "open
  9273. database with password" command like in v2.
  9274.  
  9275. It may not make any difference in your particular application, but it
  9276. makes sense to get up to date....
  9277.  
  9278.  
  9279. John
  9280. =========================================================================
  9281. Date:         Tue, 29 Mar 1994 18:53:52 -0800
  9282. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9283. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9284. From:         Mike Crawford <crawford@SCIPP.UCSC.EDU>
  9285. Subject:      Re: What's Word Services?
  9286. In-Reply-To:  <01HAJKFK68MA002EFQ@SERV02.SLAC.STANFORD.EDU> from "Allan Marcus"
  9287.               at Mar 29, 94 02:46:51 pm
  9288.  
  9289. >
  9290. > What are Word Srevices?
  9291. >
  9292.  
  9293. Here is the abstract of a talk I will give at MacHack '94 in Ann Arbor in
  9294. June.
  9295.  
  9296. Send me your postal address and I will mail you the word services SDK.
  9297.  
  9298. Mike
  9299.  
  9300. The Word Services Apple Event Suite
  9301. Michael D. Crawford
  9302. Product Development Manager
  9303. Working Software, Inc.
  9304.  
  9305. The Word Services Apple Event Suite allows any application to link to
  9306. a speller, grammar checker or other text service as if it was a
  9307. built-in menu item.  Working Software developed the protocol in
  9308. cooperation with our competitors in the spelling business, as well as
  9309. several grammar checker, database and word processor publishers, and
  9310. Apple Computer, Inc.  It is probably the simplest useful thing that a
  9311. developer can do with Apple Events.
  9312.  
  9313. Word Services is designed to be very easy for client programs to
  9314. implement - the client (or word processor) needs only to send a single
  9315. Apple Event to a server program (or spellchecker) and then resume its
  9316. event loop.  The server takes over control of the protocol, retrieving
  9317. and changing text in the client program's document by using a small
  9318. subset of Core Suite Apple Events.  The complete source code to
  9319. Writeswell Jr. will be distributed along with the protocol specification.
  9320. Writeswell Jr. is a simple word processor that supports Word Services,
  9321. and is provided as an example that developers may use to add support for
  9322. the protocol to their own applications.
  9323.  
  9324. Word Services applications have been shipping for over a year and a half.
  9325. Spellers are available in a number of languages, and client programs ranging
  9326. from a curriculum planner with a total of ten users to a major word
  9327. processor have adopted the protocol.  Mr. Crawford will reflect on the
  9328. long process of developing and promoting an industry standard protocol.
  9329. =========================================================================
  9330. Date:         Wed, 30 Mar 1994 11:55:24 +0730
  9331. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9332. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9333. From:         Tan Jin Ho <jinho@NCB.GOV.SG>
  9334. Subject:      Eudora Scripting
  9335.  
  9336. Hi,
  9337.   We would like to try out Eudora's scripting capability by writing an
  9338. AppleScript script to send messages. We opened Eudora 1.4.1's dictionary and
  9339. tried to use the create element verb but couldn't get it to work. Has
  9340. somebody done this before, and is willing to share the knowledge ?
  9341. Thanks.
  9342.  
  9343. Regards,
  9344. Jin-Ho
  9345. jinho@ncb.gov.sg
  9346. =========================================================================
  9347. Date:         Tue, 29 Mar 1994 22:13:20 PST
  9348. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9349. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9350. From:         SteakFace <asmith@PRODIGY.BC.CA>
  9351. Subject:      Scriptable Finder -- will it "hide" apps?
  9352.  
  9353. I've listened to all this voluminous talk about the "Scriptable Finder" and
  9354. etc. Does it, or any other AS extension, have the ability to "hide" and
  9355. "show" windows (a la Application Menu)?
  9356.  
  9357. Cheers
  9358. SteakFace
  9359.  
  9360.  
  9361.  
  9362. =================================================================
  9363. SteakFace     graphic designer - media manipulator - bad mood guy
  9364. datapanik                                    asmith@prodigy.bc.ca
  9365. Vancouver, Canada
  9366. =================================================================
  9367. My cat would like to know why it is that we humans are so willing
  9368. to lick each other's genitals, but we won't lick our own.
  9369. =========================================================================
  9370. Date:         Tue, 29 Mar 1994 22:44:45 -0800
  9371. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9372. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9373. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9374. Subject:      Excel note
  9375.  
  9376. An ongoing discussion in a newsgroup (comp.sys.mac.programming???) is about
  9377. selecting between two ways to cause Excel to modify a spreadsheet, from
  9378. within an application.
  9379.  
  9380. Method 1:  Using the OSA tools, compile a suitable script, and execute it.
  9381.  
  9382. Method 2:  Using the AE Manager and the Object Support stuff, generated the
  9383. needed events to cause the change.
  9384.  
  9385. Method 1, including some research to jog my memory, took a half hour or so
  9386. (but see below).
  9387.  
  9388. Method 2 has taken the rest of the evening, and I can now launch Excel (if
  9389. needed) and open the document (but see below).  NOW I get to start on the
  9390. good stuff.  But at least I'm running PowerPC native code <grin>.
  9391.  
  9392. The above exercise began with this script as a working model:
  9393.  
  9394. tell application "Microsoft Excel"
  9395.     open alias "Dev:Development:ToyStore:ExcelHack"
  9396.     set value of Cell 1 of Column 1 to 27.9
  9397. end tell
  9398.  
  9399. That has the unfortunate effect if ExcelHack is already open and modified
  9400. in Excel of causing Excel to ask Notification Manager to bring it to the
  9401. front, and ask if I want to revert to the saved version of the file.
  9402. Interesting, in view of the lack of a Revert command in Excel's file menu.
  9403.  
  9404. And particularly interesting when executed from my toy application, since I
  9405. carefully sent the open event with the kAENeverInteract flag in the send
  9406. mode parameter.  Ah, well:  revised model script:
  9407.  
  9408. tell application "Microsoft Excel"
  9409.     if not (exists Document "ExcelHack") then
  9410.         open alias "Dev:Development:ToyStore:ExcelHack"
  9411.     end if
  9412.     set value of Cell 1 of Column 1 to 27.9
  9413. end tell
  9414.  
  9415. [Note in all cases, I'm deliberately leaving the spreadsheet open and
  9416. unsaved.  Laziness.]
  9417.  
  9418. I hope these musings help someone.  I'm hacking the code into a toy
  9419. application I'm playing with...this game is a separate source file, and if
  9420. it seems instructive when done I'll ask Fred to let me put it up on gaea as
  9421. sample code.
  9422.  
  9423.  
  9424. My conclusion is fairly clear:  in most cases it will be better (that is:
  9425. easier) to go the OSA script route rather than continue to write AE Manager
  9426. code.
  9427.  
  9428. --John
  9429.  
  9430. --
  9431. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9432. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9433. =========================================================================
  9434. Date:         Wed, 30 Mar 1994 04:00:15 EST
  9435. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9436. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9437. From:         "William J. Jamison" <jami1@AOL.COM>
  9438. Subject:      Re: reading the contents of a text file
  9439.  
  9440. "Nope. The File IO osax is part of the Script Tools collection written by
  9441. Mark
  9442. "Alldritt. You can find it--and a lot of other cool stuff--on
  9443. "gaea.kgs.ukans.edu. Check out the applescript directory.
  9444.  
  9445. "Happy scripting.
  9446.  
  9447. "pf
  9448.  
  9449. Thanks Fred. Hated to think that _some_ of us would in some way be deprived.
  9450. Now if I can just keep from getting elbowed in line at the gaea FTP ?
  9451. =========================================================================
  9452. Date:         Wed, 30 Mar 1994 04:00:33 EST
  9453. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9454. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9455. From:         "William J. Jamison" <jami1@AOL.COM>
  9456. Subject:      Re: Re> Recording events
  9457.  
  9458. ">You know, I have a script from Ed Lai that checks the contents of your hard
  9459. ">drive and builds a list of scriptable applications (there is a Frontier
  9460. ">version of this script somewhere. John?) When I get home tonight, I'll
  9461. upload
  9462. ">it to gaea.
  9463.  
  9464. "Fred...the Frontier version is (on CompuServe, at GO USERLAND):
  9465.  
  9466. "Library #08  Name:  From UserLand
  9467. "Uploaded by:  76244,120 [Dave Winer [UserLand SW]]  Date:  "5/20/93
  9468.  
  9469. "Name:  AETE.SIT
  9470. "Size:  2304 bytes  Downloads:  111  Type:  binary
  9471. "Keywords:  FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
  9472.  
  9473. Fred and John,
  9474. Is this what you're looking for?
  9475.  
  9476. suites.samples.findAETEs:
  9477.  
  9478. "Creates a folder of aliases of apps that have an 'aete' resource
  9479.  "contact the developers for a Frontier install file!
  9480.  "or ask on one of UserLand's on-line services
  9481.  
  9482. local (folder = file.getSystemDisk () + "Scriptable Apps:");
  9483. file.sureFolder (folder); "make sure the folder exists
  9484.  
  9485. try { "ignore errors in the loop
  9486.  fileloop (f in "", infinity) { "look at all files on all disks
  9487.   if file.type (f) == 'APPL' {
  9488.    if rez.countResources (f, 'aete') > 0 {
  9489.     local (alias = folder + file.fileFromPath (f));
  9490.     if not file.exists (alias) { "we'll take the 1st one we found
  9491.      file.newAlias (f, alias)}}}}};
  9492.  
  9493. Finder.reveal (folder) "show the folder in the Finder
  9494.  
  9495. If it is, (groping in the dark) and I suspect it is, the only way I could get
  9496. it to work was to insert the name of a disk in the quotes in the "fileloop(f
  9497. in "", infinity)". Then when I did the main applications disk ("Thelma"), the
  9498. script died at Popcorn and there was nothing in "Scriptable Apps".I took the
  9499. The Games disk ("Louise") was a big disappointment, the script ran all the
  9500. way thru, but didn't come up with anything. The Pocket Drive ("J.D.") came up
  9501. with "TeleFinderx Pro 2.2" and "TeleFinderx/User 3.2.3", weird, big surprise
  9502. with Authorware not being scriptable. Then I copied Popcorn over to Louise
  9503. and deleted it off of Thelma and re-ran it on Thelma and got "StuffIt
  9504. Expanderx 3.0.1", "FileMaker Pro", "UserLand Frontierx", "PageMaker 4.2" and
  9505. """drumroll""" "Popcornx" (a different one, Get Info revealed Version: 1.01;
  9506. circumspect investigation of the culprit Popcorn on Louise had no version.
  9507. Hmmm.  """flush""" )
  9508. =========================================================================
  9509. Date:         Wed, 30 Mar 1994 07:13:18 -0500
  9510. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9511. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9512. From:         John Schettino <js12@GTE.COM>
  9513. Subject:      Re: Eudora Scripting
  9514.  
  9515. >Hi,
  9516. >  We would like to try out Eudora's scripting capability by writing an
  9517. >AppleScript script to send messages. We opened Eudora 1.4.1's dictionary and
  9518. >tried to use the create element verb but couldn't get it to work. Has
  9519. >somebody done this before, and is willing to share the knowledge ?
  9520. >Thanks.
  9521. >
  9522. >Regards,
  9523. >Jin-Ho
  9524. >jinho@ncb.gov.sg
  9525.  
  9526. Its weird! Here's some to get you started:
  9527.  
  9528. tell application "Eudora 2.0.2"
  9529.   -- new message
  9530.   set newMsg to CreateElement Message InsertHere end of Mailbox "Out" of
  9531. Mail Folder ""
  9532.   set field "To" of newMsg to "someone@somewhere.org"
  9533.   set field "" of newMsg to "this is the mail body"
  9534.   -- mail it
  9535.   queue forMsg QueueType 1
  9536. end tell
  9537.  
  9538. - john
  9539.  
  9540. -----------------------------------------
  9541. js12@gte.com                      GTE Laboratories
  9542. John Schettino                           Waltham, MA
  9543. =========================================================================
  9544. Date:         Wed, 30 Mar 1994 08:34:48 -0600
  9545. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9546. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9547. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9548. Subject:      Re: Scriptable Finder -- will it "hide" apps?
  9549. In-Reply-To:  Your message of "Tue, 29 Mar 94 22:13:20 PST"
  9550.  
  9551. In your message to Multiple recipients of list MACSCRPT (cc to me) you wrote:
  9552. > ...
  9553.  
  9554.  
  9555. Your message dated: Tue, 29 Mar 94 22:13:20 PST
  9556. >I've listened to all this voluminous talk about the "Scriptable Finder" and
  9557. >etc. Does it, or any other AS extension, have the ability to "hide" and
  9558. >"show" windows (a la Application Menu)?
  9559. >
  9560.  
  9561. Hmmm...that's a good question. Dunno. Why not use
  9562.  
  9563. ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx ?
  9564.  
  9565. pf
  9566.  
  9567.  
  9568. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9569. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  9570. =========================================================================
  9571. Date:         Wed, 30 Mar 1994 09:44:20 -0500
  9572. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9573. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9574. From:         Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
  9575. Subject:      New Stuff on Info-mac
  9576.  
  9577. there are some new files on Info-Mac that you might be interested in.
  9578. perhaps they should be put on gaea. i am the author or matt's scripts, so
  9579. i can send that to whatever address necessary to get it on gaea if you like.
  9580.  
  9581.  
  9582. Date: Mon, 28 Mar 1994 09:25:53 -0500
  9583. From: ai158@freenet.buffalo.edu (Matthew Ahrens)
  9584. Subject: [*] Matt's Scripts (AppleScript)
  9585.  
  9586. These are some scripts for AppleScript that I wrote. They include:
  9587. Replace in text editor
  9588. Dial Number
  9589. Number Lines
  9590. Get Item Info
  9591.  
  9592. I hope you enjoy them!
  9593.  
  9594. [Archived as /info-mac/dev/src/matts-scripts-as.hqx; 59K]
  9595.  
  9596. --------------------
  9597.  
  9598. Date: Sun, 27 Mar 1994 14:09:11 -0500
  9599. From: gtq1@cornell.edu (Greg Quinn)
  9600. Subject: [*] GTQ Scripting Library1.1 (AppleScript)
  9601.  
  9602. Please distribute this new version of my GTQ Scripting Library to the usual
  9603. places.  Thanks!
  9604.  
  9605. Greg
  9606. Greg Quinn
  9607. AppleLink:D3297
  9608. Internet:gtq1@Cornell.edu
  9609.  
  9610. [Archived as /info-mac/dev/src/gtq-scripting-lib-11-as.hqx; 263K]
  9611.  
  9612. --
  9613. My opinions are mine only and tentative, pending further data
  9614.                         Matthew Ahrens
  9615. ai261@FreeNet.Carleton.ca           ai158@FreeNet.Buffalo.edu
  9616. MacRules2@aol.com     <-Last Resorts->     Matthew210@aol.com
  9617. =========================================================================
  9618. Date:         Wed, 30 Mar 1994 10:36:22 -0500
  9619. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9620. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9621. From:         Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
  9622. Subject:      AppleScript Runtime 1.1
  9623.  
  9624. two questions.
  9625.  
  9626. does applescript Runtime 1.1 include frontmost and the script editor?
  9627.  
  9628. where can i get Runtime? i havn't seen it in any mail order places, so i guess
  9629. it is only available from APDA. how can i contact them? email/800 phone
  9630. preferred.
  9631.  
  9632. tia!
  9633.  
  9634. --
  9635. My opinions are mine only and tentative, pending further data
  9636.                         Matthew Ahrens
  9637. ai261@FreeNet.Carleton.ca           ai158@FreeNet.Buffalo.edu
  9638. MacRules2@aol.com     <-Last Resorts->     Matthew210@aol.com
  9639. =========================================================================
  9640. Date:         Wed, 30 Mar 1994 12:03:21 -0500
  9641. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9642. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9643. From:         David Kim <dckim@CS.PURDUE.EDU>
  9644. Subject:      Re: AppleScript Runtime 1.1
  9645. In-Reply-To:  Your message of "Wed,
  9646.               30 Mar 1994 10:36:22 EST."
  9647.               <199403301546.KAA28299@arthur.cs.purdue.edu>
  9648.  
  9649. >two questions.
  9650. >
  9651. >does applescript Runtime 1.1 include frontmost and the script editor?
  9652. >
  9653. >where can i get Runtime? i havn't seen it in any mail order places, so i guess
  9654. >it is only available from APDA. how can i contact them? email/800 phone
  9655. >preferred.
  9656. >
  9657. >tia!
  9658. >
  9659. >--
  9660. >My opinions are mine only and tentative, pending further data
  9661. >                        Matthew Ahrens
  9662. >ai261@FreeNet.Carleton.ca           ai158@FreeNet.Buffalo.edu
  9663. >MacRules2@aol.com     <-Last Resorts->     Matthew210@aol.com
  9664.  
  9665. Hello...
  9666.  
  9667.   Actually the Frontmost is not included with the Runtime AppleScript packet
  9668. from APDA.  APDA number is 800-282-2732.
  9669.  
  9670. David Kim
  9671. -----------
  9672. David Kim, Macintosh Specialist           Internet: dckim@cs.purdue.edu
  9673. Purdue University Computer, Science Dept. Bitnet:   dckim@purccvm
  9674. CS Building, Room 273                     Phone:    (317) 743-8187
  9675. West Lafayette, IN 47907, USA             Fax:      (317) 494-0739
  9676. =========================================================================
  9677. Date:         Wed, 30 Mar 1994 12:04:56 -0500
  9678. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9679. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9680. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9681. Subject:      Re: Scriptable Finder -- will it "hide" apps?
  9682. In-Reply-To:  <no.id> from "SteakFace" at Mar 29, 94 10:13:20 pm
  9683.  
  9684. --SteakFace wrote:
  9685. >
  9686. >I've listened to all this voluminous talk about the "Scriptable Finder" and
  9687. >etc. Does it, or any other AS extension, have the ability to "hide" and
  9688. >"show" windows (a la Application Menu)?
  9689.  
  9690.     Absolutely. There isn't a direct "hide" command, but once you get a
  9691. handle on how the Scriptable Finder looks as apps, and files, and stuff
  9692. it's easy to locate. Here's an example:
  9693.  
  9694.     tell application "Finder"
  9695.         set visible of process "Script Editor" to false
  9696.     end tell
  9697.  
  9698.     This will hide the Script Editor, or any other application. Even if
  9699. that application isn't scriptable. This is because the function is
  9700. actually controlling the Process Manager, and not the application
  9701. itself. It tells the Process Manager to "hide" a given named process.
  9702.  
  9703. -Hades
  9704. =========================================================================
  9705. Date:         Wed, 30 Mar 1994 08:54:27 PST
  9706. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9707. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9708. From:         carl juarez <retrofut@SEANEWS.AKITA.COM>
  9709. Organization: SEANEWS - Seattle Public Access News + Mail
  9710. Subject:      Re: reading the contents of a text file
  9711. In-Reply-To:  <199403300904.AA06366@nwnexus.wa.com>
  9712.  
  9713. "William J. Jamison" <jami1@aol.com> writes:
  9714.  
  9715. > "Nope. The File IO osax is part of the Script Tools collection written by
  9716. > Mark
  9717. > "Alldritt. You can find it--and a lot of other cool stuff--on
  9718. > "gaea.kgs.ukans.edu. Check out the applescript directory.
  9719. >
  9720. > "Happy scripting.
  9721. >
  9722. > "pf
  9723. >
  9724. > Thanks Fred. Hated to think that _some_ of us would in some way be deprived.
  9725. > Now if I can just keep from getting elbowed in line at the gaea FTP ?
  9726.  
  9727. Is there any way I can get to gaea.kgs.etc via e-mail?  I don't have FTP
  9728. access but my mailer's robust.
  9729.  
  9730. Another Q: Is anyone interested in doing a digest form of this list?  30
  9731. messages/day is a little too much, especially when they're short
  9732. appendages to other short messages (like this one).
  9733.  
  9734. Thanks in a dvance,
  9735. Carl J.
  9736.  
  9737. --
  9738. [] SEANEWS [] Seattle Public Access Usenet News + Mail [] +1 206 614 0048 []
  9739. retrofut@seanews.akita.com
  9740. =========================================================================
  9741. Date:         Wed, 30 Mar 1994 13:08:47 -0500
  9742. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9743. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9744. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9745. Subject:      Re: reading the contents of a text file
  9746. In-Reply-To:  <no.id> from "carl juarez" at Mar 30, 94 08:54:27 am
  9747.  
  9748. --Carl Juarez wrote:
  9749. >
  9750. >Another Q: Is anyone interested in doing a digest form of this list?  30
  9751. >messages/day is a little too much, especially when they're short
  9752. >appendages to other short messages (like this one).
  9753.  
  9754.     If you want to get this list sent to you in digest form, all you
  9755. need to do is send mail to listserv@dartmouth.edu, the subject line is
  9756. ignored, and have the only line in the file read "set macscrpt digest".
  9757. You will then receive the list as digest. I think it's sent out,
  9758. automatically, one or two time per day.
  9759.  
  9760. -Hades
  9761. =========================================================================
  9762. Date:         Wed, 30 Mar 1994 12:07:16 -0600
  9763. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9764. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9765. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9766. Subject:      new on gaea
  9767.  
  9768. You'll find the scripts and osax collection that Matt Ahrens referred to on
  9769. gaea now.
  9770.  
  9771. ftp://gaea.kgs.ukans.edu/applescript/osaxen/GTQScriptingLibrary1.1.hqx
  9772. ftp://gaea.kgs.ukans.edu/applescript/scripts/MattsScripts.hqx
  9773.  
  9774. Enjoy.
  9775.  
  9776. pf
  9777.  
  9778.  
  9779. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9780. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  9781. =========================================================================
  9782. Date:         Wed, 30 Mar 1994 10:10:14 -0800
  9783. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9784. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9785. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9786. Subject:      Re: Scriptable Finder -- will it "hide" apps?
  9787.  
  9788. >I've listened to all this voluminous talk about the "Scriptable Finder" and
  9789. >etc. Does it, or any other AS extension, have the ability to "hide" and
  9790. >"show" windows (a la Application Menu)?
  9791.  
  9792. Finder is just an application...it has no more reason to be the controller
  9793. of other application's visibility than any other application does.
  9794.  
  9795. Fred has pointed you to a Scripting Addition which does the job.
  9796.  
  9797. Scriptable Finder, itself, can have its own layer hidden (the icons remain,
  9798. as usual), with
  9799.  
  9800. set application "Finder"'s visible to false
  9801.  
  9802. Other scriptable applications may or may not support a settable visible
  9803. property, but the Registry doesn't call for it (unless I've missed it).
  9804.  
  9805. Finder does not (per the dictionary, anyhow) support the Do Menu event from
  9806. the miscellaneous suite, which would have been one possibility.
  9807.    --John
  9808.  
  9809. --
  9810. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9811. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9812. =========================================================================
  9813. Date:         Wed, 30 Mar 1994 10:15:36 -0800
  9814. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9815. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9816. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9817. Subject:      Re: Scriptable Finder -- will it "hide" apps?
  9818.  
  9819. >>I've listened to all this voluminous talk about the "Scriptable Finder" and
  9820. >>etc. Does it, or any other AS extension, have the ability to "hide" and
  9821. >>"show" windows (a la Application Menu)?
  9822. >
  9823. >    Absolutely. There isn't a direct "hide" command, but once you get a
  9824. >handle on how the Scriptable Finder looks as apps, and files, and stuff
  9825. >it's easy to locate. Here's an example:
  9826. >
  9827. >    tell application "Finder"
  9828. >        set visible of process "Script Editor" to false
  9829. >    end tell
  9830. >
  9831.  
  9832. Oops...I just "crossed" a wrong answer with Brian's right answer, above.  I
  9833. missed the process class just now while looking through Finder's
  9834. dictionary.  So...ignore the wrong part of my answer.
  9835.    --John
  9836.  
  9837. --
  9838. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9839. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  9840. =========================================================================
  9841. Date:         Wed, 30 Mar 1994 12:54:49 U
  9842. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9843. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9844. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  9845. Subject:      Re: Re- reading the contents
  9846.  
  9847.         Reply to:   RE>Re: reading the contents of
  9848. >  If you want to get this list sent to you in digest form, all you need
  9849. > to do is send mail to listserv@dartmouth.edu, the subject line is
  9850. > ignored, and have the only line in the file read "set macscrpt digest".
  9851. > You will then receive the list as digest. I think it's sent out,
  9852. > automatically, one or two time per day.
  9853.  
  9854. Do I unsubscribe to the list in general and then subscribe to the digest? Or
  9855. does "set macscrpt digest" modify my existing subscription?
  9856.  
  9857. Ignorantly yours,
  9858. Mark Stewart
  9859. BIAD-Research Imaging Center
  9860. UTHSCSA
  9861. stewart@uthscsa.edu
  9862. =========================================================================
  9863. Date:         Wed, 30 Mar 1994 14:17:46 -0500
  9864. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9865. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9866. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  9867. Subject:      Re: Re- reading the contents
  9868. In-Reply-To:  <no.id> from "mark stewart" at Mar 30, 94 12:54:49 pm
  9869.  
  9870. --You wrote:
  9871. >
  9872. >Do I unsubscribe to the list in general and then subscribe to the
  9873. >digest?
  9874.  
  9875.     No.
  9876.  
  9877. >Or does "set macscrpt digest" modify my existing subscription?
  9878.  
  9879.     Yes.
  9880.  
  9881. -Hades
  9882. =========================================================================
  9883. Date:         Wed, 30 Mar 1994 11:04:41 LCL
  9884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9886. From:         Tim Keanini <Tim_Keanini@BRODER.COM>
  9887. Subject:      debuggers and tools for AS
  9888.  
  9889. Hi everyone,
  9890.  
  9891. I have been working in Frontier now since the release and I have yet to find a
  9892. debugging environment for applescript that compares to the one in Frontier.
  9893. I know that there are companies that say that they will be out soon with their
  9894. solution to my problem.  Just in case I might have missed a release of two,
  9895. does anyone know of a system that will  give me a scripting development
  9896. environment for applescript that would compare to Frontier 3.x?
  9897.  
  9898. I use Frontier everyday and until something come out, there is no reason for me
  9899. to switch over yet. :-)
  9900.  
  9901. Tim Keanini  <timk@broder.com>  <blast@crl.com>
  9902. =========================================================================
  9903. Date:         Wed, 30 Mar 1994 15:05:13 -0500
  9904. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9905. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9906. From:         Graham Heyes <heyes@DAHP1.CEBAF.GOV>
  9907. Subject:      who to send dosc event to...
  9908.  
  9909. Ok this is probably a crazy question but I'm coming up with them this week.
  9910.  
  9911. I was using tickle by Tim Endres before I started to look at AppleScript, the
  9912. whole thing started through a need to learn TCL for a unix project I was
  9913. setting up at work. Playing on the Mac is always more fun. Anyway, tickle has a
  9914. faceless daemon called "the tickle engine" which can be started up from the
  9915. "Startup Items" folder. You can then send an apple event to the tickle engine
  9916. asking it to perform a script. My question is what is the equivalent mechanism
  9917. for AppleScript? Suppose I have an application like filemaker pro which can
  9918. send an apple event from it's own macro language I could then construct an
  9919. AppleScript script and post it to be executed. The question is who to post it
  9920. to and is such a thing possible?
  9921.  
  9922.                 Graham
  9923.  
  9924. -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
  9925. Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
  9926. =========================================================================
  9927. Date:         Thu, 31 Mar 1994 08:43:23 +0930
  9928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9930. From:         "Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU>
  9931. Subject:      FileMakerPro dialog box problem
  9932.  
  9933. Hello all!
  9934.  
  9935. I am just starting out with Applescript and my first attempt is going a bit
  9936. sour.  I'm trying to access records from FileMakerPro v2.1 from Hypercard
  9937. 2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
  9938.  
  9939. I can get the data and perform finds within FileMaker quite easily, and I
  9940. can basically do everything I want to do (after one week with NO manuals
  9941. etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
  9942. (BTW -  I did see someone was asking earlier how to do a Find via AS
  9943. without having to use "canned" scripts within FMP, so if still interested
  9944. just say so.)
  9945.  
  9946. My problem is that when I call up FMP from HC via AS I get a dialog box in
  9947. FMP (which remains INVISIBLE) but is asking for a FMP database to open.
  9948. This hangs up AS until I manually clear off the dialog box.  I tried to
  9949. open the application with a database file, but it still has to fire up FMP
  9950. first.  I can bypass the dialog box by opening FMP from HC with a simple
  9951. open command, but this is very UGLY as I then see the FMP log-on screen and
  9952. FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
  9953. new to me), and I have to manually get back to my HC stack.
  9954.  
  9955. Anybody know a way around this?  Can I use (and wher can I GET) something
  9956. like AutoType which I see many of you are using to hack incompletely
  9957. "scriptable" applications, or is there another way?
  9958.  
  9959. As an aside, HCv2.2 SAYS it can build stand-alone applications from system
  9960. 7, and all the blurb's in the manual, and I even get SOME of the stuff they
  9961. say when I try to "Save a Copy", but I DON'T get the pop-up list of
  9962. File-Types as the manual states.  I'm using system 7.1 (which I would HOPE
  9963. would be backwardly compatible with system 7????)  Any takers? Or should I
  9964. post this question on the HC listserver?
  9965.  
  9966. Thanks for listening, and I hope I can supply help to others in the future
  9967. once I've got my tortured brain in some sort of AS shape.
  9968.  
  9969.  
  9970. Paul J. Stoll
  9971. Computer Assisted Learning Unit
  9972. Flinders University of South Australia
  9973. Flinders Medical Centre
  9974. Bedford Park.  5042.
  9975. South Australia.
  9976. =========================================================================
  9977. Date:         Wed, 30 Mar 1994 16:55:00 PST
  9978. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9979. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9980. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  9981. Subject:      Re: reading the contents of a text file
  9982.  
  9983. >Your message dated: Tue, 29 Mar 94 10:04:34 EST
  9984. >>>I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
  9985. >>>with either one of them. Is this indicative of a shortcoming in >the
  9986. >>examples
  9987. >>>dept or the capabilities of my system? Have I been short >shrifted? Do you
  9988. >>>have more toys than me Steve?
  9989. >>
  9990. >>System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
  9991. >>AppleScript 1.1 (The Scriptable Finder).  I don't have AppleScript 1.1
  9992. >>(Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
  9993. >>in there.
  9994. >
  9995. >Nope. The File IO osax is part of the Script Tools collection written by Mark
  9996. >Alldritt. You can find it--and a lot of other cool stuff--on
  9997. >gaea.kgs.ukans.edu. Check out the applescript directory.
  9998. >
  9999. >Happy scripting.
  10000. >
  10001. >pf
  10002.  
  10003. I should probably keep my mouth shut at this point, but Apple introduced a
  10004. file IO OSAX of their own in the AppleScript 1.1 release.  Unlike my File
  10005. IO addition which assumes you want to work with text files (a line at a
  10006. time), the Apple addition treats a file as a sequence of bytes.
  10007.  
  10008. The two OSAXs co-exist, so you pick the one which best meets your needs.
  10009.  
  10010. -Mark
  10011. =========================================================================
  10012. Date:         Wed, 30 Mar 1994 18:27:26 -0800
  10013. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10014. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10015. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10016. Subject:      Re: FileMakerPro dialog box problem
  10017.  
  10018. >Hello all!
  10019. >
  10020. >I am just starting out with Applescript and my first attempt is going a bit
  10021. >sour.  I'm trying to access records from FileMakerPro v2.1 from Hypercard
  10022. >2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
  10023. >
  10024. >I can get the data and perform finds within FileMaker quite easily, and I
  10025. >can basically do everything I want to do (after one week with NO manuals
  10026. >etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
  10027. >(BTW -  I did see someone was asking earlier how to do a Find via AS
  10028. >without having to use "canned" scripts within FMP, so if still interested
  10029. >just say so.)
  10030. >
  10031. >My problem is that when I call up FMP from HC via AS I get a dialog box in
  10032. >FMP (which remains INVISIBLE) but is asking for a FMP database to open.
  10033. >This hangs up AS until I manually clear off the dialog box.  I tried to
  10034. >open the application with a database file, but it still has to fire up FMP
  10035. >first.  I can bypass the dialog box by opening FMP from HC with a simple
  10036. >open command, but this is very UGLY as I then see the FMP log-on screen and
  10037. >FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
  10038. >new to me), and I have to manually get back to my HC stack.
  10039.  
  10040. One method:
  10041. Run a HyperTalk script which opens the FileMaker Pro DOCUMENT you are
  10042. interested in opening.  That's like double-clicking the FileMaker database
  10043. in the Finder.
  10044.  
  10045. There are other methods, involving any of several methods of talking the
  10046. Finder into opening the database.
  10047.  
  10048. Down the road, when Scriptable Finder is out, you will be able to say
  10049. something like
  10050.  
  10051. tell application "Finder" to open file "your database"
  10052.  
  10053.  
  10054. >As an aside, HCv2.2 SAYS it can build stand-alone applications from system
  10055. >7, and all the blurb's in the manual, and I even get SOME of the stuff they
  10056. >say when I try to "Save a Copy", but I DON'T get the pop-up list of
  10057. >File-Types as the manual states.  I'm using system 7.1 (which I would HOPE
  10058. >would be backwardly compatible with system 7????)  Any takers? Or should I
  10059. >post this question on the HC listserver?
  10060.  
  10061. I haven't the foggiest idea why you are having trouble.  I haven't yet seen
  10062. a file dialog without the popup, even just now when I made an empty new
  10063. stack and immediately did Save a Copy... .
  10064.  
  10065.  
  10066. --
  10067. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10068. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10069. =========================================================================
  10070. Date:         Wed, 30 Mar 1994 20:05:16 -0800
  10071. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10072. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10073. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10074. Subject:      Re: FileMakerPro dialog box problem
  10075.  
  10076. At 08:43 3/31/94 +0930, Paul J. Stoll wrote:
  10077.  
  10078. >I am just starting out with Applescript and my first attempt is going a bit
  10079. >sour.  I'm trying to access records from FileMakerPro v2.1 from Hypercard
  10080. >2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
  10081. >
  10082. >I can get the data and perform finds within FileMaker quite easily, and I
  10083. >can basically do everything I want to do (after one week with NO manuals
  10084. >etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
  10085. >(BTW -  I did see someone was asking earlier how to do a Find via AS
  10086. >without having to use "canned" scripts within FMP, so if still interested
  10087. >just say so.)
  10088. >
  10089. >My problem is that when I call up FMP from HC via AS I get a dialog box in
  10090. >FMP (which remains INVISIBLE) but is asking for a FMP database to open.
  10091. >This hangs up AS until I manually clear off the dialog box.  I tried to
  10092. >open the application with a database file, but it still has to fire up FMP
  10093. >first.  I can bypass the dialog box by opening FMP from HC with a simple
  10094. >open command, but this is very UGLY as I then see the FMP log-on screen and
  10095. >FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
  10096. >new to me), and I have to manually get back to my HC stack.
  10097.  
  10098. Paul,
  10099.  
  10100.    I was a bit flippant before in my response.  This script, as the button
  10101. script on a button in my test HyperCard stack, successfully launches
  10102. FileMaker, opening the indicated database (also a "toy", like the stack).
  10103.  
  10104. on mouseUp
  10105.     set theFolder to alias "Vashon:FileMaker:"
  10106.     set theDoc to {alias "Vashon:FileMaker:JWB"}
  10107.     tell application "Finder"
  10108.         open theFolder items theDoc
  10109.     end tell
  10110. end mouseUp
  10111.  
  10112. That script will end with FileMaker as the frontmost application.  I don't
  10113. know how to avoid FileMaker starting up in front with this sort of
  10114. script...you can certainly activate Hypercard right away.  But...see below.
  10115.  
  10116. You will note that the construction of the event is rather "strange".  The
  10117. whole original Finder suite is strange, as viewed with a knowledge of the
  10118. released, modern AppleScript.  Things changed a LOT (and for the better)
  10119. after System 7 Finder was frozen.  [Finder has accepted the event sent to
  10120. it by this script since System 7 appeared in May of 1991, and Finder was
  10121. pretty much frozen in terms of its Apple events well before that.]
  10122.  
  10123. Another oddity of the Finder Suite is that there is no reply to messages
  10124. like open ... items ... .  So I'm not sure that putting anything after the
  10125. tell "Finder"...end tell will give you any synchronization with what
  10126. FileMaker is doing...you may just have to delay for a while and hope for
  10127. the best.
  10128.  
  10129.  
  10130. And, yes...you really do have to create both the alias to the folder, and
  10131. the list of items inside the folder.  [The list can include more than one
  10132. item.]  That's true of those events in the old Finder Suite which refer to
  10133. particular icons in windows (things in directories).  The upcoming
  10134. "Scriptable Finder" ignores that old stuff, and does everything the modern
  10135. way (it still accepts the old events, but the modern ones aren't visibly
  10136. related to them).
  10137.  
  10138.    --John
  10139.  
  10140. --
  10141. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10142. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  10143. =========================================================================
  10144. Date:         Wed, 30 Mar 1994 20:43:46 -0800
  10145. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10146. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10147. From:         James Edward Davis <jedavis@CS.STANFORD.EDU>
  10148. Subject:      Re: a request for contributions
  10149.  
  10150. Regarding your book.. you had mentioned to me that you were going to
  10151. mention my OSAX, and presumably the work of many other folks as well.
  10152. You might consider asking all the extras to take a look at your
  10153. manuscript and check the part particular to them, just to make sure
  10154. capabilities etc are correctly represented. (Not that I think you'd be
  10155. wrong, but things change etc)  =)
  10156. In the interest of completeness and correctness...
  10157.  
  10158. The other thing.. if you decide to include my OSAX on a floppy with it, please
  10159. let me know in advance, and Ill binhex a new version up for you with
  10160. a couple fixes and documentation annotations that people suggested.
  10161.  
  10162. Of course if you arent mentioning me, then this doesnt apply in my case,
  10163. but thought it was a helpful suggestion none the less.
  10164.  
  10165. later and good luck,
  10166. James
  10167. =========================================================================
  10168. Date:         Wed, 30 Mar 1994 23:40:05 -0800
  10169. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10170. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10171. From:         Jon Pugh <jonpugh@NETCOM.COM>
  10172. Subject:      Re: Hypercard won't save
  10173.  
  10174. John "I have nothing better to do than answer email" Baxter ;) already
  10175. answered your FileMaker question, so I'll take a stab at the Hypercard
  10176. part.
  10177.  
  10178. >"Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU> asks:
  10179. >As an aside, HCv2.2 SAYS it can build stand-alone applications from system
  10180. >7, and all the blurb's in the manual, and I even get SOME of the stuff they
  10181. >say when I try to "Save a Copy", but I DON'T get the pop-up list of
  10182. >File-Types as the manual states.  I'm using system 7.1 (which I would HOPE
  10183. >would be backwardly compatible with system 7????)  Any takers? Or should I
  10184. >post this question on the HC listserver?
  10185.  
  10186. There is a bug which prevents this from working on machines with a 68000
  10187. (i.e. the Plus, SE and PowerBook 100).  You didn't say what machine you
  10188. have, but I'm taking bets that it is one of these.
  10189.  
  10190. Jon
  10191. =========================================================================
  10192. Date:         Thu, 31 Mar 1994 10:46:14 +0000
  10193. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10194. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10195. From:         Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
  10196. Subject:      Eudora Scripting Question
  10197.  
  10198. Fellow Scripters
  10199.  
  10200. I have mentioned here previously that I want to implement a ListServer with
  10201. the combination of Eudora 2 and Frontier 3. I have some specific questions
  10202. I need some help with.
  10203.  
  10204.  
  10205.  
  10206. PROBLEM 1
  10207.  
  10208. I need to add some extra fields to the Header of outgoing mail to make the
  10209. listserver more convenient. I want a header that says something like:-
  10210.  
  10211. From: List-Name@media.demon.co.uk
  10212. Originator: Joe_Public@the.place.it.originally.came.from
  10213.  
  10214. ...this is typical of listservers, you get info on where to make both
  10215. public or private replies...
  10216.  
  10217. I have found out how to change the "From:" field; ie.
  10218.  
  10219. on setMessageFrom (msgObj, msgFrom) {
  10220.         with objectModel, Eudora, eventInfo {
  10221.                 return (core.set (id, msgObj.field["From"], msgFrom))}}
  10222.  
  10223. but
  10224.  
  10225. 1. It can only be done while the message is in the Out Mailbox.
  10226. 2. When you change the field contents, even under script control, Eudora comes
  10227.    up with a dialog box asking you to confirm the change.
  10228. 3. I don't know how to add a non-standard field to the header,
  10229.    like "Originator:".
  10230.  
  10231.  
  10232. PROBLEM 2
  10233.  
  10234. I need to be able to keep and modify lists of subscribers to each list I
  10235. offer. I want to do this under script control. When someone sends a
  10236. subscribe request to my "Request" server mailbox, I want it handled
  10237. automatically.
  10238.  
  10239. I can find no AppleEvent mechanism for accessing the "Nicknames" database
  10240. in Eudora.
  10241.  
  10242. Am I going to handle this in Frontier? (Not an elegant solution).
  10243.  
  10244.  
  10245. I am sorry if these questions are too specific for this forum.
  10246.  
  10247. I have sent a duplicate message to Qualcomm (Eudora's publisher), and will
  10248. post their reply if anyone is interested.
  10249.  
  10250. cheers Jeremy
  10251.  
  10252.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  10253.              Jeremy Quinn             :              Internet:
  10254.             3D/Interactive            :       jermq@media.demon.co.uk
  10255.               Designer &              :               Phone:
  10256.         Green Design Consultant       :           +44 71 737 6831
  10257.         . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  10258.       Member of O2 Global Network     :     PGP Key on public keyservers
  10259. =========================================================================
  10260. Date:         Thu, 31 Mar 1994 08:41:42 -0600
  10261. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10262. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10263. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10264. Subject:      new on gaea
  10265.  
  10266. You'll find a couple of new files on gaea today
  10267.  
  10268. ftp://gaea.kgs.ukans.edu/applescript/osaxen/DateCalculations.sit.hqx
  10269. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/AcidJazz1.1v1.sit.hqx
  10270.  
  10271. Come to think of it, I'm not sure whether AcidJazz is an app or not. I saw it
  10272. mentioned in Matt Ahren's scripts, so I went and snagged it. If it isn't and I
  10273. move it, I'll let everyone know.
  10274.  
  10275. cheers.
  10276.  
  10277. pf
  10278.  
  10279.  
  10280.  
  10281. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10282. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  10283. =========================================================================
  10284. Date:         Thu, 31 Mar 1994 08:44:54 -0600
  10285. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10286. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10287. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10288. Subject:      Addison-Wesley AppleScript books
  10289.  
  10290. For those of you who have been looking for the AppleScript Language Guide and
  10291. Scripting Additions Guide, I noticed them in a flyer I got from Computer
  10292. Literacy yesterday. (If you don't know about CL, it is a great bookstore on
  10293. the west coast--oops, just noticed they have one in DC.) The prices are 29.95
  10294. and 18.95, respectively, and the order numbers are CE568199 and CE568204. They
  10295. take assorted plastic.
  10296.  
  10297. Hope this helps someone.
  10298.  
  10299. pf
  10300.  
  10301.  
  10302. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10303. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  10304. =========================================================================
  10305. Date:         Thu, 31 Mar 1994 10:42:02 -0500
  10306. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10307. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10308. From:         Kyle Barger <kbarger@ACC.HAVERFORD.EDU>
  10309. Subject:      Applescript 1.1 upgrade:  Worth it?
  10310.  
  10311. Sorry if I you talked about this earlier and I missed it.... I bought the
  10312. AppleScript Developer's Toolkit 1.0 from APDA back in December.  Price was
  10313. $199.  I just called them and they said the upgrade to version 1.1 is $99.
  10314. That seems a bit much for an incremental upgrade!  What are the new
  10315. features in 1.1?  Is it worth it?
  10316.  
  10317. --
  10318. Kyle Barger                         Haverford College Academic Computing
  10319. kbarger@haverford.edu
  10320. =========================================================================
  10321. Date:         Thu, 31 Mar 1994 15:56:42 -0800
  10322. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10323. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10324. From:         Rob Dewhirst <robd@FARALLON.COM>
  10325. Subject:      UNSUBSCRIBE APPLESCRIPT robd@farallon.com
  10326.  
  10327. UNSUBSCRIBE APPLESCRIPT robd@farallon.com
  10328. UNSUBSCRIBE APPLESCRIPT Rob Dewhirst
  10329. =========================================================================
  10330. Date:         Wed, 30 Mar 1994 14:55:34 PDT
  10331. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10332. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10333. From:         network_manager@ALDUS.COM
  10334. Organization: Aldus Corporation, Seattle, WA
  10335. Subject:      NDN:Scriptable Finder -- will it "hide" apps?
  10336.  
  10337. Your mail to the Microsoft Mail Server could not be fully
  10338. delivered!   Reasons listed below!   It has been deleted.
  10339. =========================================================================
  10340. Date:         Thu, 31 Mar 1994 16:31:00 GMT
  10341. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10342. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10343. From:         "Piercey, Chuck" <C.PIERCEY@APPLELINK.APPLE.COM>
  10344. Subject:      UNSUBSCRIBE APPLESCRIPT
  10345.  
  10346. UNSUBSCRIBE APPLESCRIPT c.piercey@applelink.apple.com
  10347. =========================================================================
  10348. Date:         Thu, 31 Mar 1994 10:42:13 -0600
  10349. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10350. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10351. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10352. Subject:      Re: Addison-Wesley AppleScript books
  10353. In-Reply-To:  Your message of "Thu, 31 Mar 94 08:38:33 PST"
  10354.  
  10355. Steve,
  10356.  
  10357. >>For those of you who have been looking for the AppleScript Language Guide and
  10358. >>Scripting Additions Guide, I noticed them in a flyer I got from Computer
  10359. >>Literacy yesterday. (If you don't know about CL, it is a great bookstore on
  10360. >>the west coast--oops, just noticed they have one in DC.) The prices are 29.95
  10361. >>and 18.95, respectively, and the order numbers are CE568199 and CE568204. The
  10362. >y
  10363. >>take assorted plastic.
  10364. >>
  10365. >>Hope this helps someone.
  10366. >
  10367. >Do you have a contact phone number for Computer Literacy?
  10368. >
  10369.  
  10370. Geeeeeezzzzz, what a moron (he says with an imprint of his hand squarely
  10371. planted in the center of his forehead). I typed all of that in so people could
  10372. call. Grr. The phone number is 408/435-0744. Here this should make up for it:
  10373. the email address is info@clbooks.com.
  10374.  
  10375. Sorry.
  10376.  
  10377. pf
  10378. =========================================================================
  10379. Date:         Thu, 31 Mar 1994 10:45:43 -0600
  10380. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10381. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10382. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10383. Subject:      Re: reading the contents of a text file
  10384. In-Reply-To:  Your message of "Wed, 30 Mar 94 08:54:27 PST"
  10385.  
  10386. Carl,
  10387.  
  10388. >Is there any way I can get to gaea.kgs.etc via e-mail?  I don't have FTP
  10389. >access but my mailer's robust.
  10390.  
  10391. I'm not real clear on the function, but you can get ftp stuff via email. Send
  10392. the message
  10393.  
  10394. help
  10395.  
  10396. to ftpmail@pa.dec.com. That should give you back the commands to get the
  10397. files. The first thing you'll want to get from gaea is /applescript/00index.
  10398. It contains all of the files on the site.
  10399.  
  10400. >Another Q: Is anyone interested in doing a digest form of this list?  30
  10401. >messages/day is a little too much, especially when they're short
  10402. >appendages to other short messages (like this one).
  10403.  
  10404. You can get a digested version of this list by sending the message
  10405.  
  10406. set macscrpt digest
  10407.  
  10408. to listserv@dartmouth.edu. After that, you will get one (1) a day with all of
  10409. the messages in it.
  10410.  
  10411. BTW, the admistriva messages that Andy and I send out are really useful.
  10412. Honestly. Scan them before you send them to the great bit bucket in the
  10413. sky for recycling. You might want to send the message
  10414.  
  10415. info refcard
  10416.  
  10417. to find out everything that the listserv can do.
  10418.  
  10419. pf
  10420.  
  10421.  
  10422. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10423. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  10424.  
  10425. "Bad spellers of the world, untie!"
  10426.                                         --Graffito
  10427. =========================================================================
  10428. Date:         Thu, 31 Mar 1994 15:49:04 EST
  10429. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10430. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10431. From:         "William J. Jamison" <jami1@AOL.COM>
  10432. Subject:      file IO osax
  10433.  
  10434. "I should probably keep my mouth shut at this point, but Apple introduced a
  10435. "file IO OSAX of their own in the AppleScript 1.1 release.  Unlike my File
  10436. "IO addition which assumes you want to work with text files (a line at a
  10437. "time), the Apple addition treats a file as a sequence of bytes.
  10438.  
  10439. "The two OSAXs co-exist, so you pick the one which best meets your needs.
  10440.  
  10441. "-Mark
  10442.  
  10443.  
  10444. Choices, choices...Me being the traditional application type programmer,
  10445. I'll take the "line at a time" IO addition and do my own parsing if need be.
  10446. I suppose the other has it's uses, but for throughput sake...
  10447.  
  10448. Jami1
  10449. (Bill Jamison)  Kelso, WA
  10450. =========================================================================
  10451. Date:         Thu, 31 Mar 1994 19:31:50 +0200
  10452. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10453. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10454. From:         Benno Palmert <palmert@ISYS-HH.HANSE.DE>
  10455. Subject:      Change FM scripts from Fontier
  10456.  
  10457. The problem:
  10458. I have three printers: a LaserWriter IIg, a HP DeskJet 510
  10459. and a StyleWriter II. Every time I want to print in landscape format the
  10460. page margins are different on each printer and the layouts for printing
  10461. don't match as they should. To bypass this problem I created several
  10462. scripts which should change the layout used for printing depending on
  10463. the selected printer, to make it transparent for user's. I use FileMaker
  10464. Pro 2.0v2, Frontier 3.0.1 and the Rinaldi's Chooser 1.7 verb for finding
  10465. out the printer's name and then call the appropriate script to change
  10466. the layout.
  10467.  
  10468. The Frontier script is working so far, but it takes about 30 to 45 sec.
  10469. to call a different layout from Frontier in FM - in a test database with
  10470. only one record. How can I reduce the time for changing to a different
  10471. layout?
  10472.  
  10473. I want to import this script into the 2.0 RunTime.root but selecting the
  10474. RunTime application in FM under "Specify application", every time
  10475. "Unserland Frontier" appears and FM tries to look only for Frontier. FM
  10476. doesn't seem to recognize Runtime 2.0. Why? What is going wrong?
  10477.  
  10478. Thanks, Benno
  10479.  
  10480.  
  10481.  
  10482.